smartcontract: rename ByteArray to ByteString in JSON for smartcontract parameters
This commit is contained in:
parent
81adb7ce83
commit
6a2161207a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue