From 1264b629f1c3cbcf95542467369742e8538d1af6 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 2 Mar 2020 18:05:26 +0300 Subject: [PATCH] smartcontract: parse Struct item type same way as Array --- 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 e253ba846..0c98125fd 100644 --- a/pkg/smartcontract/param_type.go +++ b/pkg/smartcontract/param_type.go @@ -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