Skip to content

Commit 9a4b217

Browse files
committed
dev: make VirtualMachine::get_traceback_entries pub
1 parent 5e0ed72 commit 9a4b217

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
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+
* dev: make `VirtualMachine::get_traceback_entries` pub
6+
57
* chore: Pin types-rs version to the one set in lockfile [#2140](https://github.com/lambdaclass/cairo-vm/pull/2140)
68

79
* chore: Migrate from `pyenv` to `uv` [#1995](https://github.com/lambdaclass/cairo-vm/pull/1995)

vm/src/vm/vm_core.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,9 @@ impl VirtualMachine {
821821
Ok(())
822822
}
823823

824-
// Returns the values (fp, pc) corresponding to each call instruction in the traceback.
825-
// Returns the most recent call last.
826-
pub(crate) fn get_traceback_entries(&self) -> Vec<(Relocatable, Relocatable)> {
824+
/// Returns the values (fp, pc) corresponding to each call instruction in the traceback.
825+
/// Returns the most recent call last.
826+
pub fn get_traceback_entries(&self) -> Vec<(Relocatable, Relocatable)> {
827827
let mut entries = Vec::<(Relocatable, Relocatable)>::new();
828828
let mut fp = Relocatable::from((1, self.run_context.fp));
829829
// Fetch the fp and pc traceback entries

0 commit comments

Comments
 (0)