diff --git a/CHANGELOG.md b/CHANGELOG.md index 84c2c0b0ff..22c8e8418a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* dev: make `VirtualMachine::get_traceback_entries` pub + * chore: Migrate from `pyenv` to `uv` [#1995](https://github.com/lambdaclass/cairo-vm/pull/1995) * chore: remove unused dependencies [#2111](https://github.com/lambdaclass/cairo-vm/pull/2111) diff --git a/vm/src/vm/vm_core.rs b/vm/src/vm/vm_core.rs index be89d2821d..2adcf47b09 100644 --- a/vm/src/vm/vm_core.rs +++ b/vm/src/vm/vm_core.rs @@ -821,9 +821,9 @@ impl VirtualMachine { Ok(()) } - // Returns the values (fp, pc) corresponding to each call instruction in the traceback. - // Returns the most recent call last. - pub(crate) fn get_traceback_entries(&self) -> Vec<(Relocatable, Relocatable)> { + /// Returns the values (fp, pc) corresponding to each call instruction in the traceback. + /// Returns the most recent call last. + pub fn get_traceback_entries(&self) -> Vec<(Relocatable, Relocatable)> { let mut entries = Vec::<(Relocatable, Relocatable)>::new(); let mut fp = Relocatable::from((1, self.run_context.fp)); // Fetch the fp and pc traceback entries