Skip to content

Commit

Permalink
Make ApplicationEngine.LoadContext protection level public (#3243)
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuchardt88 authored May 20, 2024
1 parent 8b687b6 commit 08f2dfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Neo.VM/ExecutionEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected internal void ExecuteNext()
/// Loads the specified context into the invocation stack.
/// </summary>
/// <param name="context">The context to load.</param>
protected internal virtual void LoadContext(ExecutionContext context)
public virtual void LoadContext(ExecutionContext context)
{
if (InvocationStack.Count >= Limits.MaxInvocationStackSize)
throw new InvalidOperationException($"MaxInvocationStackSize exceed: {InvocationStack.Count}");
Expand Down
2 changes: 1 addition & 1 deletion src/Neo/SmartContract/ApplicationEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public static ApplicationEngine Create(TriggerType trigger, IVerifiable containe
?? new ApplicationEngine(trigger, container, snapshot, persistingBlock, settings, gas, diagnostic, jumpTable);
}

protected internal override void LoadContext(ExecutionContext context)
public override void LoadContext(ExecutionContext context)
{
// Set default execution context state
var state = context.GetState<ExecutionContextState>();
Expand Down

0 comments on commit 08f2dfc

Please sign in to comment.