File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#### Upcoming Changes
4
4
5
+ * feat: add get_current_step getter [ #2034 ] ( https://github.com/lambdaclass/cairo-vm/pull/2034 )
6
+
5
7
* feat: implement VirtualMachine::is_accessed [ #2033 ] ( https://github.com/lambdaclass/cairo-vm/pull/2033 )
6
8
7
9
* Refactor: Replaced HashMap with BTreeMap to guarantee deterministic ordering of the data [ #2023 ] (https://github.com/lambdaclass/cairo-vm/pull/2023 )
Original file line number Diff line number Diff line change @@ -895,6 +895,10 @@ impl VirtualMachine {
895
895
self . run_context . get_pc ( )
896
896
}
897
897
898
+ pub fn get_current_step ( & self ) -> usize {
899
+ self . current_step
900
+ }
901
+
898
902
///Gets the integer value corresponding to the Relocatable address
899
903
pub fn get_integer ( & self , key : Relocatable ) -> Result < Cow < Felt252 > , MemoryError > {
900
904
self . segments . memory . get_integer ( key)
@@ -5170,7 +5174,7 @@ mod tests {
5170
5174
let mut virtual_machine_from_builder = virtual_machine_builder. build ( ) ;
5171
5175
5172
5176
assert ! ( virtual_machine_from_builder. run_finished) ;
5173
- assert_eq ! ( virtual_machine_from_builder. current_step , 12 ) ;
5177
+ assert_eq ! ( virtual_machine_from_builder. get_current_step ( ) , 12 ) ;
5174
5178
assert_eq ! (
5175
5179
virtual_machine_from_builder
5176
5180
. builtin_runners
You can’t perform that action at this time.
0 commit comments