Skip to content

Commit

Permalink
Fix Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Aug 16, 2023
1 parent be2ef40 commit 780103a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Neo/SmartContract/ApplicationEngine.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ private static bool CheckItemType(StackItem item, ContractParameterType type)
case ContractParameterType.Integer:
return aType == StackItemType.Integer;
case ContractParameterType.ByteArray:
return aType is StackItemType.Any or StackItemType.ByteString or StackItemType.Buffer;
case ContractParameterType.String:
{
if (aType is StackItemType.Any or StackItemType.ByteString or StackItemType.Buffer)
Expand Down

0 comments on commit 780103a

Please sign in to comment.