Skip to content

Commit d230894

Browse files
committed
Add current_call to method names
1 parent e13f4b2 commit d230894

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
@@ -588,12 +588,12 @@ impl TraceData {
588588
current_call.borrow_mut().vm_trace = Some(vm_trace);
589589
}
590590

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

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

0 commit comments

Comments
 (0)