eth/tracers: clear error for non-reverting pre-homestead fail (#29824)
This commit is contained in:
parent
513276864b
commit
ea6c16007c
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) {
|
func (f *callFrame) processOutput(output []byte, err error, reverted bool) {
|
||||||
output = common.CopyBytes(output)
|
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 {
|
if err == nil {
|
||||||
f.Output = output
|
f.Output = output
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue