Skip to content

Commit

Permalink
Merge pull request #393 from OffchainLabs/fix_flatCallTracer_onexit
Browse files Browse the repository at this point in the history
fix flatCallTracer onexit out of bound
  • Loading branch information
joshuacolvin0 authored Jan 6, 2025
2 parents be92342 + bd8e6ed commit dd32b78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/tracers/native/call_flat.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ func (t *flatCallTracer) OnExit(depth int, output []byte, gasUsed uint64, err er
if t.config.IncludePrecompiles {
return
}
if len(t.tracer.callstack[len(t.tracer.callstack)-1].Calls) == 0 {
return
}
var (
// call has been nested in parent
parent = t.tracer.callstack[len(t.tracer.callstack)-1]
Expand Down

0 comments on commit dd32b78

Please sign in to comment.