Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Aug 31, 2024
1 parent 7eb281b commit 1d6c03e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions crates/evm/evm/src/inspectors/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use revm::{
Database, EvmContext, Inspector,
};

/// A Wrapper around [TracingInspector] to allow adding zkEVM traces.
#[derive(Clone, Debug, Default)]
pub struct TraceCollector {
inner: TracingInspector,
Expand Down Expand Up @@ -64,23 +65,11 @@ impl TraceCollector {
self.inner.traces()
}

// #[doc(hidden)]
// #[deprecated = "use `traces` instead"]
// pub const fn get_traces(&self) -> &CallTraceArena {
// self.inner.get_traces()
// }

/// Gets a mutable reference to the recorded call traces.
pub fn traces_mut(&mut self) -> &mut CallTraceArena {
self.inner.traces_mut()
}

// #[doc(hidden)]
// #[deprecated = "use `traces_mut` instead"]
// pub fn get_traces_mut(&mut self) -> &mut CallTraceArena {
// &mut self.inner.get_traces_mut()
// }

/// Consumes the inspector and returns the recorded call traces.
pub fn into_traces(self) -> CallTraceArena {
self.inner.into_traces()
Expand Down

0 comments on commit 1d6c03e

Please sign in to comment.