Skip to content

Commit

Permalink
fix(abstract-phase-manager): get available gas from latest kernel output
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanks12 committed May 1, 2024
1 parent 03fa539 commit 20b190f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export abstract class AbstractPhaseManager {
const current = executionStack.pop()!;
const isExecutionRequest = !isPublicExecutionResult(current);
const sideEffectCounter = lastSideEffectCounter(tx) + 1;
const availableGas = this.getAvailableGas(tx, previousPublicKernelOutput);
const availableGas = this.getAvailableGas(tx, kernelOutput);

const result = isExecutionRequest
? await this.publicExecutor.simulate(
Expand Down

0 comments on commit 20b190f

Please sign in to comment.