Skip to content

Commit 043fdbf

Browse files
committed
opt(receipt): use program result to check transaction execution result
1 parent e9a34f4 commit 043fdbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chainbase/src/main/java/org/tron/core/db/TransactionTrace.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public void pay() throws BalanceInsufficientException {
255255
AccountCapsule origin = accountStore.get(originAccount);
256256
AccountCapsule caller = accountStore.get(callerAccount);
257257
if (dynamicPropertiesStore.supportUnfreezeDelay()
258-
&& receipt.getReceipt().getResult().equals(contractResult.SUCCESS)) {
258+
&& getRuntimeResult().getException() == null && !getRuntimeResult().isRevert()) {
259259

260260
// just fo caller is not origin, we set the related field for origin account
261261
if (origin != null && !caller.getAddress().equals(origin.getAddress())) {

0 commit comments

Comments
 (0)