From bbae7318a5aef578931d6ba6efb1cf56f2396e8d Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 10 Aug 2020 09:37:27 +0300 Subject: [PATCH] smartcontract: adjust param types according to NEO3 --- pkg/smartcontract/param_type.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkg/smartcontract/param_type.go b/pkg/smartcontract/param_type.go index e702c8b89..eb7c7b2b7 100644 --- a/pkg/smartcontract/param_type.go +++ b/pkg/smartcontract/param_type.go @@ -20,18 +20,18 @@ type ParamType int // A list of supported smart contract parameter types. const ( UnknownType ParamType = -1 - SignatureType ParamType = 0x00 - BoolType ParamType = 0x01 - IntegerType ParamType = 0x02 - Hash160Type ParamType = 0x03 - Hash256Type ParamType = 0x04 - ByteArrayType ParamType = 0x05 - PublicKeyType ParamType = 0x06 - StringType ParamType = 0x07 - ArrayType ParamType = 0x10 - MapType ParamType = 0x12 - InteropInterfaceType ParamType = 0xf0 - AnyType ParamType = 0xfe + AnyType ParamType = 0x00 + BoolType ParamType = 0x10 + IntegerType ParamType = 0x11 + ByteArrayType ParamType = 0x12 + StringType ParamType = 0x13 + Hash160Type ParamType = 0x14 + Hash256Type ParamType = 0x15 + PublicKeyType ParamType = 0x16 + SignatureType ParamType = 0x17 + ArrayType ParamType = 0x20 + MapType ParamType = 0x22 + InteropInterfaceType ParamType = 0x30 VoidType ParamType = 0xff )