Skip to content

Commit

Permalink
Fix native parameters (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored Dec 27, 2020
1 parent 32513ed commit 5052317
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/neo/SmartContract/Native/NativeContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5052317

Please sign in to comment.