From b319f127e7df01bde560844d6d5a388f92788dcf Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 8 Sep 2020 13:48:33 +0300 Subject: [PATCH] interop: make `Base*Encode` return string --- pkg/interop/binary/binary.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/interop/binary/binary.go b/pkg/interop/binary/binary.go index e6c1a0392..e5f834cfb 100644 --- a/pkg/interop/binary/binary.go +++ b/pkg/interop/binary/binary.go @@ -19,8 +19,8 @@ func Deserialize(b []byte) interface{} { // Base64Encode encodes given byte slice into a base64 string and returns byte // representation of this string. It uses `System.Binary.Base64Encode` interop. -func Base64Encode(b []byte) []byte { - return nil +func Base64Encode(b []byte) string { + return "" } // Base64Decode decodes given base64 string represented as a byte slice into @@ -31,8 +31,8 @@ func Base64Decode(b []byte) []byte { // Base58Encode encodes given byte slice into a base58 string and returns byte // representation of this string. It uses `System.Binary.Base58Encode` syscall. -func Base58Encode(b []byte) []byte { - return nil +func Base58Encode(b []byte) string { + return "" } // Base58Decode decodes given base58 string represented as a byte slice into