eth/tracers: clear error for non-reverting pre-homestead fail (#29824)

pull/29025/merge
Sina M 6 months ago committed by GitHub
parent 513276864b
commit ea6c16007c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      eth/tracers/internal/tracetest/testdata/call_tracer_withLog/frontier_create_outofstorage.json
  2. 5
      eth/tracers/native/call.go

File diff suppressed because one or more lines are too long

@ -74,6 +74,11 @@ func (f callFrame) failed() bool {
func (f *callFrame) processOutput(output []byte, err error, reverted bool) {
output = common.CopyBytes(output)
// Clear error if tx wasn't reverted. This happened
// for pre-homestead contract storage OOG.
if err != nil && !reverted {
err = nil
}
if err == nil {
f.Output = output
return

Loading…
Cancel
Save