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 zfy0701 committed Mar 24, 2024
1 parent 4c1075c commit e9688ba
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 e9688ba

Please sign in to comment.