Skip to content

Commit 5a0f468

Browse files
eth/tracers: Fix callTracer logs on onlyTopCall == true (#29068)
1 parent 45a272c commit 5a0f468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/tracers/native/call.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (t *callTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, sco
161161
return
162162
}
163163
// Avoid processing nested calls when only caring about top call
164-
if t.config.OnlyTopCall && depth > 0 {
164+
if t.config.OnlyTopCall && depth > 1 {
165165
return
166166
}
167167
// Skip if tracing was interrupted

0 commit comments

Comments
 (0)