Skip to content

Commit

Permalink
Close #2820 (#2821)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Oct 17, 2022
1 parent 27f63be commit fcbf479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Neo/SmartContract/ApplicationEngine.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected internal void RuntimeLoadScript(byte[] script, CallFlags callFlags, Ar
throw new ArgumentOutOfRangeException(nameof(callFlags));

ExecutionContextState state = CurrentContext.GetState<ExecutionContextState>();
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;
Expand Down

0 comments on commit fcbf479

Please sign in to comment.