Skip to content

Commit

Permalink
eth/tracers/call: Fix call_tracer withLog == true && onlyTopCall == true
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisilviudragnea committed Feb 26, 2024
1 parent 45a272c commit f7e9ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/tracers/native/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (t *callTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, sco
return
}
// Avoid processing nested calls when only caring about top call
if t.config.OnlyTopCall && depth > 0 {
if t.config.OnlyTopCall && depth > 1 {
return
}
// Skip if tracing was interrupted
Expand Down

0 comments on commit f7e9ff1

Please sign in to comment.