From 780103a2ed6d3bd7bab666d8e1955d2fff4ba03c Mon Sep 17 00:00:00 2001 From: Shargon Date: Wed, 16 Aug 2023 06:14:54 -0700 Subject: [PATCH] Fix Buffer --- src/Neo/SmartContract/ApplicationEngine.Runtime.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Neo/SmartContract/ApplicationEngine.Runtime.cs b/src/Neo/SmartContract/ApplicationEngine.Runtime.cs index cef872718b..5c187cb4e8 100644 --- a/src/Neo/SmartContract/ApplicationEngine.Runtime.cs +++ b/src/Neo/SmartContract/ApplicationEngine.Runtime.cs @@ -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)