mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
This commit is contained in:
parent
a9dc0a81a3
commit
db1082355d
2 changed files with 7 additions and 1 deletions
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…
Reference in a new issue