Skip to content

Commit

Permalink
eth/tracers: Fix callTracer logs on onlyTopCall == true (#29068)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisilviudragnea committed Feb 27, 2024
1 parent 45a272c commit 5a0f468
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 5a0f468

Please sign in to comment.