Skip to content

Commit

Permalink
Pass the exceptionHaltReason of the frame if the operation reason is …
Browse files Browse the repository at this point in the history
…null (#6599)

Signed-off-by: Gabriel-Trintinalia <[email protected]>
  • Loading branch information
Gabriel-Trintinalia authored Feb 22, 2024
1 parent ef75afb commit 7836e09
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public void tracePostExecution(final MessageFrame frame, final OperationResult o
thisGasCost == 0 ? OptionalLong.empty() : OptionalLong.of(thisGasCost),
frame.getGasRefund(),
depth,
Optional.ofNullable(operationResult.getHaltReason()),
Optional.ofNullable(operationResult.getHaltReason())
.or(frame::getExceptionalHaltReason),
frame.getRecipientAddress(),
frame.getApparentValue(),
inputData,
Expand Down

0 comments on commit 7836e09

Please sign in to comment.