Skip to content

Commit

Permalink
use errors.Is
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Aug 31, 2022
1 parent 97dddf6 commit 2103217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/tracers/native/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (t *callTracer) CaptureEnd(output []byte, gasUsed uint64, _ time.Duration,
return
}
t.callstack[0].Error = err.Error()
if err != vm.ErrExecutionReverted || len(output) == 0 {
if !errors.Is(err, vm.ErrExecutionReverted) || len(output) == 0 {
return
}
t.callstack[0].Output = bytesToHex(output)
Expand Down

0 comments on commit 2103217

Please sign in to comment.