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 aa69ed1 commit 30fadefCopy full SHA for 30fadef
crates/cheatcodes/src/evm.rs
@@ -855,11 +855,12 @@ impl Cheatcode for stopAndReturnDebugTraceRecordingCall {
855
856
let debug_steps: Vec<DebugStep> =
857
steps.iter().map(|&step| convert_call_trace_to_debug_step(step)).collect();
858
-
859
// Free up memory by clearing the steps if they are not recorded outside of cheatcode usage.
860
if !record_info.original_tracer_config.record_steps {
861
tracer.traces_mut().nodes_mut().iter_mut().for_each(|node| {
862
- node.trace.steps = Vec::new();
+ node.trace.steps.clear();
+ node.logs.clear();
863
+ node.ordering.clear();
864
});
865
}
866
0 commit comments