From 6a2161207afcdcb699fc2ad9776e03959c1aa016 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 19 Jun 2020 11:14:20 +0300 Subject: [PATCH] smartcontract: rename ByteArray to ByteString in JSON for smartcontract parameters --- pkg/smartcontract/param_type.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/smartcontract/param_type.go b/pkg/smartcontract/param_type.go index 3c2ab38c1..4d0b45666 100644 --- a/pkg/smartcontract/param_type.go +++ b/pkg/smartcontract/param_type.go @@ -48,7 +48,7 @@ func (pt ParamType) String() string { case Hash256Type: return "Hash256" case ByteArrayType: - return "ByteArray" + return "ByteString" case PublicKeyType: return "PublicKey" case StringType: @@ -143,7 +143,7 @@ func ParseParamType(typ string) (ParamType, error) { return Hash160Type, nil case "hash256": return Hash256Type, nil - case "bytes", "bytearray": + case "bytes", "bytearray", "bytestring": return ByteArrayType, nil case "key", "publickey": return PublicKeyType, nil