From 5052317189fa03c940a9a9ceff9e6b14899f0a30 Mon Sep 17 00:00:00 2001 From: Erik Zhang Date: Sun, 27 Dec 2020 19:41:01 +0800 Subject: [PATCH] Fix native parameters (#2183) --- src/neo/SmartContract/Native/NativeContract.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/neo/SmartContract/Native/NativeContract.cs b/src/neo/SmartContract/Native/NativeContract.cs index 2b704e0510..391c01eb95 100644 --- a/src/neo/SmartContract/Native/NativeContract.cs +++ b/src/neo/SmartContract/Native/NativeContract.cs @@ -167,6 +167,8 @@ private static ContractParameterType ToParameterType(Type type) if (type == typeof(BigInteger)) return ContractParameterType.Integer; if (type == typeof(byte[])) return ContractParameterType.ByteArray; if (type == typeof(string)) return ContractParameterType.String; + if (type == typeof(UInt160)) return ContractParameterType.Hash160; + if (type == typeof(UInt256)) return ContractParameterType.Hash256; if (type == typeof(VM.Types.Boolean)) return ContractParameterType.Boolean; if (type == typeof(Integer)) return ContractParameterType.Integer; if (type == typeof(ByteString)) return ContractParameterType.ByteArray;