Skip to content

Commit a9e9601

Browse files
amsanghijoshuacolvin0
authored andcommitted
fix flatCallTracer onexit out of bound
1 parent 3382d27 commit a9e9601

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eth/tracers/native/call_flat.go

+3
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ func (t *flatCallTracer) OnExit(depth int, output []byte, gasUsed uint64, err er
195195
if t.config.IncludePrecompiles {
196196
return
197197
}
198+
if len(t.tracer.callstack[len(t.tracer.callstack)-1].Calls) > 0 {
199+
return
200+
}
198201
var (
199202
// call has been nested in parent
200203
parent = t.tracer.callstack[len(t.tracer.callstack)-1]

0 commit comments

Comments
 (0)