mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
eth/tracers: clear error for non-reverting pre-homestead fail
This commit is contained in:
parent
7fd7c1f7dd
commit
911e0fbb32
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Reference in a new issue