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 3, 2024
1 parent 3ec9303 commit 8e4954c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export abstract class AbstractPhaseManager {
const isExecutionRequest = !isPublicExecutionResult(current);
// TODO(6052): Extract correct new counter from nested calls
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 8e4954c

Please sign in to comment.