Skip to content

Commit

Permalink
Fix ToParameter() (#1323)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and vncoelho committed Dec 4, 2019
1 parent 5cba80a commit afec99a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/neo/VM/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ private static ContractParameter ToParameter(StackItem item, List<(StackItem, Co
Type = ContractParameterType.InteropInterface
};
break;
case Null _:
parameter = new ContractParameter
{
Type = ContractParameterType.Any
};
break;
default: // Null included
throw new ArgumentException();
}
Expand Down

0 comments on commit afec99a

Please sign in to comment.