Skip to content

Commit

Permalink
eth/tracers: Fix callTracer logs on onlyTopCall == true (ethereum#29068)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisilviudragnea authored and jorgemmsilva committed Jun 17, 2024
1 parent 1c00a49 commit d6f240a
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 d6f240a

Please sign in to comment.