chore: make traces public (#5567)

Co-authored-by: Enrique Ortiz <hi@enriqueortiz.dev>
This commit is contained in:
Bjerg
2023-11-27 15:35:40 +01:00
committed by GitHub
parent 846a377f8e
commit c49cda62b0

View File

@ -83,6 +83,16 @@ impl TracingInspector {
}
}
/// Gets a reference to the recorded call traces.
pub fn get_traces(&self) -> &CallTraceArena {
&self.traces
}
/// Gets a mutable reference to the recorded call traces.
pub fn get_traces_mut(&mut self) -> &mut CallTraceArena {
&mut self.traces
}
/// Manually the gas used of the root trace.
///
/// This is useful if the root trace's gasUsed should mirror the actual gas used by the