Skip to content

Commit 23c8e9e

Browse files
committed
Add comment
1 parent d230894 commit 23c8e9e

File tree

1 file changed

+3
-0
lines changed
  • crates/cheatnet/src/runtime_extensions/call_to_blockifier_runtime_extension/execution

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ 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+
79+
// In case of a revert, clear all events and messages emitted by the current call.
7880
trace_data.clear_current_call_events_and_messages();
81+
7982
trace_data.update_current_call_result(CallResult::from_err(error, &identifier));
8083
trace_data.exit_nested_call();
8184
}

0 commit comments

Comments
 (0)