From 5823bc068f42dcb0c9552861aba6f2439e9d4abe Mon Sep 17 00:00:00 2001 From: longw Date: Tue, 26 Mar 2024 17:59:06 +0800 Subject: [PATCH] emit output for revert --- eth/tracers/sentio/tracer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth/tracers/sentio/tracer.go b/eth/tracers/sentio/tracer.go index 250bbe9e5dee..ec538c1b5724 100644 --- a/eth/tracers/sentio/tracer.go +++ b/eth/tracers/sentio/tracer.go @@ -497,7 +497,8 @@ func (t *sentioTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, s //data := copyMemory(logOffset, logSize) trace := mergeBase(Trace{ - Error: "execution reverted", + Output: output, + Error: "execution reverted", }) if unpacked, err := abi.UnpackRevert(output); err == nil { trace.Revertal = unpacked