Skip to content

Commit 862fe3a

Browse files
committed
Add current_call to method names
1 parent f376c24 commit 862fe3a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/cheatnet/src/runtime_extensions/call_to_blockifier_runtime_extension/execution/execution_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub(crate) fn exit_error_call(
7575
CallType::Delegate => AddressOrClassHash::ClassHash(entry_point.class_hash),
7676
};
7777
let trace_data = &mut cheatnet_state.trace_data;
78-
trace_data.clear_events_and_messages();
79-
trace_data.update_call_result(CallResult::from_err(error, &identifier));
78+
trace_data.clear_current_call_events_and_messages();
79+
trace_data.update_current_call_result(CallResult::from_err(error, &identifier));
8080
trace_data.exit_nested_call();
8181
}

crates/cheatnet/src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,12 @@ impl TraceData {
589589
current_call.borrow_mut().vm_trace = Some(vm_trace);
590590
}
591591

592-
pub fn update_call_result(&mut self, result: CallResult) {
592+
pub fn update_current_call_result(&mut self, result: CallResult) {
593593
let current_call = self.current_call_stack.top();
594594
current_call.borrow_mut().result = result;
595595
}
596596

597-
pub fn clear_events_and_messages(&mut self) {
597+
pub fn clear_current_call_events_and_messages(&mut self) {
598598
let current_call = self.current_call_stack.top();
599599
current_call.borrow_mut().events.clear();
600600
current_call

0 commit comments

Comments
 (0)