From 0fa509b68da7a8ab1b5865d17a7cf4cb197eb8b3 Mon Sep 17 00:00:00 2001 From: David Banks <47112877+dbanks12@users.noreply.github.com> Date: Fri, 3 May 2024 11:08:34 -0400 Subject: [PATCH] fix(abstract-phase-manager): get available gas from latest kernel output (#6102) --- yarn-project/simulator/src/public/abstract_phase_manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/simulator/src/public/abstract_phase_manager.ts b/yarn-project/simulator/src/public/abstract_phase_manager.ts index b499163bc25..e3084193263 100644 --- a/yarn-project/simulator/src/public/abstract_phase_manager.ts +++ b/yarn-project/simulator/src/public/abstract_phase_manager.ts @@ -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(