Skip to content

Commit

Permalink
fix: dont record step tracing by default (foundry-rs#6734)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and RPate97 committed Jan 12, 2024
1 parent 1e4290f commit f633711
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/anvil/src/eth/backend/mem/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ impl Inspector {

/// Configures the `Tracer` [`revm::Inspector`]
pub fn with_tracing(mut self) -> Self {
self.tracer = Some(TracingInspector::new(TracingInspectorConfig::all()));
self.tracer = Some(TracingInspector::new(TracingInspectorConfig::all().set_steps(false)));
self
}

/// Enables steps recording for `Tracer`.
pub fn with_steps_tracing(self) -> Self {
self.with_tracing()
pub fn with_steps_tracing(mut self) -> Self {
self.tracer = Some(TracingInspector::new(TracingInspectorConfig::all()));
self
}
}

Expand Down

0 comments on commit f633711

Please sign in to comment.