We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f54443c commit 3d32addCopy full SHA for 3d32add
vm/src/vm/runners/cairo_runner_2.rs
@@ -30,6 +30,7 @@ pub struct CairoRunner2 {
30
virtual_machine: VirtualMachine,
31
program_base: Relocatable,
32
execution_base: Relocatable,
33
+ final_pc: Relocatable,
34
35
// Configuration
36
executable: Executable,
@@ -149,11 +150,17 @@ impl CairoRunner2 {
149
150
.validate_existing_memory()
151
.map_err(RunnerError::MemoryValidationError)?;
152
153
+ let final_pc = match entrypoint_kind {
154
+ EntryPointKind::Bootloader => return_pc,
155
+ EntryPointKind::Standalone => (initial_pc + 4)?,
156
+ };
157
+
158
Ok(Self {
159
executable,
160
virtual_machine,
161
program_base,
162
execution_base,
163
+ final_pc,
164
entrypoint_kind,
165
layout,
166
trace_enabled,
0 commit comments