Skip to content

Commit

Permalink
opt(receipt): use program result to check transaction execution result
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghang8612 committed Apr 10, 2023
1 parent e9a34f4 commit 043fdbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public void pay() throws BalanceInsufficientException {
AccountCapsule origin = accountStore.get(originAccount);
AccountCapsule caller = accountStore.get(callerAccount);
if (dynamicPropertiesStore.supportUnfreezeDelay()
&& receipt.getReceipt().getResult().equals(contractResult.SUCCESS)) {
&& getRuntimeResult().getException() == null && !getRuntimeResult().isRevert()) {

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

0 comments on commit 043fdbf

Please sign in to comment.