From 911e0fbb326b56842c41a810362038370d70250a Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Wed, 22 May 2024 16:47:38 +0200 Subject: [PATCH] eth/tracers: clear error for non-reverting pre-homestead fail --- eth/tracers/native/call.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eth/tracers/native/call.go b/eth/tracers/native/call.go index 3b63506580..2b84ecaf40 100644 --- a/eth/tracers/native/call.go +++ b/eth/tracers/native/call.go @@ -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