smartcontract: rename ByteArray to ByteString in JSON for smartcontract parameters

This commit is contained in:
Evgenii Stratonikov 2020-06-19 11:14:20 +03:00
parent 81adb7ce83
commit 6a2161207a

View file

@ -48,7 +48,7 @@ func (pt ParamType) String() string {
case Hash256Type: case Hash256Type:
return "Hash256" return "Hash256"
case ByteArrayType: case ByteArrayType:
return "ByteArray" return "ByteString"
case PublicKeyType: case PublicKeyType:
return "PublicKey" return "PublicKey"
case StringType: case StringType:
@ -143,7 +143,7 @@ func ParseParamType(typ string) (ParamType, error) {
return Hash160Type, nil return Hash160Type, nil
case "hash256": case "hash256":
return Hash256Type, nil return Hash256Type, nil
case "bytes", "bytearray": case "bytes", "bytearray", "bytestring":
return ByteArrayType, nil return ByteArrayType, nil
case "key", "publickey": case "key", "publickey":
return PublicKeyType, nil return PublicKeyType, nil