From 1a55bc9fb2c2b686ce3fcf2388328a9acd5bd218 Mon Sep 17 00:00:00 2001 From: cloud8little <413074538@qq.com> Date: Wed, 10 Mar 2021 17:32:58 +0800 Subject: [PATCH] add settings to invokecontractverify --- src/RpcServer/RpcServer.Wallet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RpcServer/RpcServer.Wallet.cs b/src/RpcServer/RpcServer.Wallet.cs index 196bbe9b6..7c75e628f 100644 --- a/src/RpcServer/RpcServer.Wallet.cs +++ b/src/RpcServer/RpcServer.Wallet.cs @@ -359,7 +359,7 @@ private JObject GetVerificationResult(UInt160 scriptHash, ContractParameter[] ar wallet.Sign(context); tx.Witnesses = context.Completed ? context.GetWitnesses() : null; - using ApplicationEngine engine = ApplicationEngine.Create(TriggerType.Verification, tx, snapshot.CreateSnapshot()); + using ApplicationEngine engine = ApplicationEngine.Create(TriggerType.Verification, tx, snapshot.CreateSnapshot(), settings: system.Settings); engine.LoadScript(new ScriptBuilder().EmitDynamicCall(scriptHash, methodName, args).ToArray(), rvcount: 1); JObject json = new JObject();