mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
smartcontract: parse Struct item type same way as Array
This commit is contained in:
parent
05a3625b7d
commit
1264b629f1
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ func (pt *ParamType) DecodeBinary(r *io.BinReader) {
|
|||
// bytes, bytearray -> ByteArrayType
|
||||
// key, publickey -> PublicKeyType
|
||||
// string -> StringType
|
||||
// array -> ArrayType
|
||||
// array, struct -> ArrayType
|
||||
// map -> MapType
|
||||
// interopinterface -> InteropInterfaceType
|
||||
// void -> VoidType
|
||||
|
@ -145,7 +145,7 @@ func ParseParamType(typ string) (ParamType, error) {
|
|||
return PublicKeyType, nil
|
||||
case "string":
|
||||
return StringType, nil
|
||||
case "array":
|
||||
case "array", "struct":
|
||||
return ArrayType, nil
|
||||
case "map":
|
||||
return MapType, nil
|
||||
|
|
Loading…
Reference in a new issue