mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make traces public (#5567)
Co-authored-by: Enrique Ortiz <hi@enriqueortiz.dev>
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user