From 7836e09d4ec5d2fbc8b1ef0d2c3defe0a7b0acb7 Mon Sep 17 00:00:00 2001 From: Gabriel-Trintinalia Date: Thu, 22 Feb 2024 13:08:00 +1100 Subject: [PATCH] Pass the exceptionHaltReason of the frame if the operation reason is null (#6599) Signed-off-by: Gabriel-Trintinalia --- .../org/hyperledger/besu/ethereum/vm/DebugOperationTracer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/vm/DebugOperationTracer.java b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/vm/DebugOperationTracer.java index 5156a7a0735..485420df772 100644 --- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/vm/DebugOperationTracer.java +++ b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/vm/DebugOperationTracer.java @@ -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,