forked from TrueCloudLab/neoneo-go
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
|
// bytes, bytearray -> ByteArrayType
|
||||||
// key, publickey -> PublicKeyType
|
// key, publickey -> PublicKeyType
|
||||||
// string -> StringType
|
// string -> StringType
|
||||||
// array -> ArrayType
|
// array, struct -> ArrayType
|
||||||
// map -> MapType
|
// map -> MapType
|
||||||
// interopinterface -> InteropInterfaceType
|
// interopinterface -> InteropInterfaceType
|
||||||
// void -> VoidType
|
// void -> VoidType
|
||||||
|
@ -145,7 +145,7 @@ func ParseParamType(typ string) (ParamType, error) {
|
||||||
return PublicKeyType, nil
|
return PublicKeyType, nil
|
||||||
case "string":
|
case "string":
|
||||||
return StringType, nil
|
return StringType, nil
|
||||||
case "array":
|
case "array", "struct":
|
||||||
return ArrayType, nil
|
return ArrayType, nil
|
||||||
case "map":
|
case "map":
|
||||||
return MapType, nil
|
return MapType, nil
|
||||||
|
|
Loading…
Reference in a new issue