From 4ad490af5a736808b5782ec6c8a144c64798b6a3 Mon Sep 17 00:00:00 2001 From: Daniel Blanco Parla Date: Tue, 13 Feb 2024 23:14:25 +0100 Subject: [PATCH] Revert "doc: Filter out calls to specific contracts in call_tracer.rs" This reverts commit 2fe4f4de870109cb4f0c5f186e50e12766a30bda. --- vendor/client/evm-tracing/src/formatters/call_tracer.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vendor/client/evm-tracing/src/formatters/call_tracer.rs b/vendor/client/evm-tracing/src/formatters/call_tracer.rs index eab1e9c..62543bd 100644 --- a/vendor/client/evm-tracing/src/formatters/call_tracer.rs +++ b/vendor/client/evm-tracing/src/formatters/call_tracer.rs @@ -43,7 +43,6 @@ impl super::ResponseFormatter for Formatter { for entry in listener.entries.iter() { let mut result: Vec = entry .into_iter() - .filter(|(_, it)| it.from.ne(&H160::zero())) // Filters out calls to the ConversionRateController and other Precompiles .map(|(_, it)| { let from = it.from; let trace_address = it.trace_address.clone(); @@ -208,13 +207,8 @@ impl super::ResponseFormatter for Formatter { .. }), ) => { - println!("a: {:?}", a); - println!("b: {:?}", b); - &b[..] - == a.get(0..a.len() - 1).expect( - "non-root element while traversing trace result", - ) + == &a[..] } _ => unreachable!(), }) {