From 36c269935be7f855f8fcaf69a8f6767d53ca39fc Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 9 Jan 2024 14:31:35 +0100 Subject: [PATCH] fix: dont record step tracing by default --- crates/anvil/src/eth/backend/mem/inspector.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/anvil/src/eth/backend/mem/inspector.rs b/crates/anvil/src/eth/backend/mem/inspector.rs index d1b45bea453a..bb648f6c61d8 100644 --- a/crates/anvil/src/eth/backend/mem/inspector.rs +++ b/crates/anvil/src/eth/backend/mem/inspector.rs @@ -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 } }