Skip to content

Commit

Permalink
emit output for revert
Browse files Browse the repository at this point in the history
  • Loading branch information
lwedge99 committed Mar 26, 2024
1 parent 546cb32 commit 5823bc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth/tracers/sentio/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5823bc0

Please sign in to comment.