Skip to content

Commit

Permalink
Fix call tracer for debug_traceTransaction (#169)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Blanco Parla <[email protected]>
  • Loading branch information
clostao and deblanco authored Feb 14, 2024
1 parent abbc11c commit 6bb0508
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vendor/client/evm-tracing/src/formatters/call_tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ impl super::ResponseFormatter for Formatter {
for entry in listener.entries.iter() {
let mut result: Vec<Call> = 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();
Expand Down Expand Up @@ -208,7 +209,9 @@ impl super::ResponseFormatter for Formatter {
}),
) => {
&b[..]
== &a[..]
== a.get(0..a.len() - 1).expect(
"non-root element while traversing trace result",
)
}
_ => unreachable!(),
}) {
Expand Down

0 comments on commit 6bb0508

Please sign in to comment.