Skip to content

Commit a0ed06d

Browse files
sashass1315JulianGCalderongabrielbosio
authored
cairo1-run: honor relocate_mem and trace_enabled when relocating (#2241)
* cairo1-run: honor relocate_mem and trace_enabled when relocating * add changelog * Update CHANGELOG.md Co-authored-by: Julian Gonzalez Calderon <gonzalezcalderonjulian@gmail.com> * Update CHANGELOG.md Co-authored-by: Gabriel Bosio <38794644+gabrielbosio@users.noreply.github.com> * fix fmt --------- Co-authored-by: Julian Gonzalez Calderon <gonzalezcalderonjulian@gmail.com> Co-authored-by: Gabriel Bosio <38794644+gabrielbosio@users.noreply.github.com>
1 parent 3327027 commit a0ed06d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#### Upcoming Changes
44

5+
* fix: Make cairo1-run to conditionally relocate memory and trace [#2241](https://github.com/lambdaclass/cairo-vm/pull/2241)
6+
57
#### [3.0.1] - 2025-12-22
68

79
* fix: Fix compute_ids_high_low hint constant path [#2285](https://github.com/lambdaclass/cairo-vm/pull/2285)

cairo1-run/src/cairo_run.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ pub fn cairo_run_program(
346346
}
347347
}
348348

349-
runner.relocate(true, true)?;
349+
runner.relocate(
350+
cairo_run_config.relocate_mem,
351+
cairo_run_config.trace_enabled,
352+
)?;
350353

351354
Ok((runner, return_values, serialized_output))
352355
}

0 commit comments

Comments
 (0)