From fcbf479cb5522d532dcdf46c51e5baba7d47fda3 Mon Sep 17 00:00:00 2001 From: Shargon Date: Mon, 17 Oct 2022 00:42:40 -0700 Subject: [PATCH] Close #2820 (#2821) --- src/Neo/SmartContract/ApplicationEngine.Runtime.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Neo/SmartContract/ApplicationEngine.Runtime.cs b/src/Neo/SmartContract/ApplicationEngine.Runtime.cs index ad20031195..9fba368b20 100644 --- a/src/Neo/SmartContract/ApplicationEngine.Runtime.cs +++ b/src/Neo/SmartContract/ApplicationEngine.Runtime.cs @@ -206,7 +206,7 @@ protected internal void RuntimeLoadScript(byte[] script, CallFlags callFlags, Ar throw new ArgumentOutOfRangeException(nameof(callFlags)); ExecutionContextState state = CurrentContext.GetState(); - ExecutionContext context = LoadScript(script, configureState: p => + ExecutionContext context = LoadScript(new Script(script, true), configureState: p => { p.CallingContext = CurrentContext; p.CallFlags = callFlags & state.CallFlags & CallFlags.ReadOnly;