Skip to content

Commit

Permalink
callTracer: dont capture logs txs failed with error (#11356)
Browse files Browse the repository at this point in the history
for #11257
  • Loading branch information
AskAlexSharov authored Jul 28, 2024
1 parent a15d74f commit be1a349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eth/tracers/native/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ func (t *callTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, sco
if t.config.OnlyTopCall && depth > 0 {
return
}
// on-error `stackData[stackSize-2]` will contain error data instead of logs.
if err != nil {
return
}
// Skip if tracing was interrupted
if atomic.LoadUint32(&t.interrupt) > 0 {
return
Expand Down

0 comments on commit be1a349

Please sign in to comment.