We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d230894 commit 23c8e9eCopy full SHA for 23c8e9e
crates/cheatnet/src/runtime_extensions/call_to_blockifier_runtime_extension/execution/execution_utils.rs
@@ -75,7 +75,10 @@ pub(crate) fn exit_error_call(
75
CallType::Delegate => AddressOrClassHash::ClassHash(entry_point.class_hash),
76
};
77
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.
80
trace_data.clear_current_call_events_and_messages();
81
82
trace_data.update_current_call_result(CallResult::from_err(error, &identifier));
83
trace_data.exit_nested_call();
84
}
0 commit comments