Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
freddi8e committed Jun 5, 2024
1 parent 727f38d commit 8d817db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/logger_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (t *ActionLogger) CaptureEnd(output []byte, gasUsed uint64, err error) {
t.callstack[0].Output = output
t.callstack[0].Error = err.Error()
if err == ErrExecutionReverted && len(output) > 0 {
t.callstack[0].Output = output
// t.callstack[0].Output = output
reason, errUnpack := abi.UnpackRevert(output)
if errUnpack == nil {
t.callstack[0].Error = fmt.Sprintf("execution reverted: %v", reason)
Expand Down

0 comments on commit 8d817db

Please sign in to comment.