eth/tracers/call: Fix call_tracer withLog == true && onlyTopCall == true

This commit is contained in:
Andrei Silviu Dragnea 2024-02-24 19:17:18 +02:00
parent 45a272c7b9
commit f7e9ff1bbf
No known key found for this signature in database

View file

@ -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