From 6909d4e6a9d60c40456f995bd191f701c609931b Mon Sep 17 00:00:00 2001 From: Mario Rugiero Date: Wed, 6 Dec 2023 21:50:32 -0300 Subject: [PATCH] fix: proof mode should adjust initial fp based on stack contents --- vm/src/vm/runners/cairo_runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/vm/runners/cairo_runner.rs b/vm/src/vm/runners/cairo_runner.rs index c934809952..8198b22d38 100644 --- a/vm/src/vm/runners/cairo_runner.rs +++ b/vm/src/vm/runners/cairo_runner.rs @@ -473,7 +473,7 @@ impl CairoRunner { self.execution_base .as_ref() .ok_or(RunnerError::NoExecBase)? - + 2, + + stack_prefix.len(), ); self.initial_ap = self.initial_fp; return Ok(self.program_base.as_ref().ok_or(RunnerError::NoProgBase)?