Skip to content

Commit ab01fc1

Browse files
authored
Merge pull request #3218 from DFXswiss/develop
Release: develop -> main
2 parents 1a841b7 + 70f4bb4 commit ab01fc1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/subdomains/core/payment-link/services/payment-quote.service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,12 @@ export class PaymentQuoteService {
418418
for (let i = 0; i < tryCount; i++) {
419419
const tx = await client.getTx(transferInfo.tx);
420420
if (tx?.confirmations > 0) {
421+
const receipt = await client.getTxReceipt(transferInfo.tx);
422+
if (!receipt?.status) {
423+
quote.txFailed(`Transaction ${transferInfo.tx} has been reverted`);
424+
return;
425+
}
426+
421427
const error = this.validateEvmTx(quote, method, expectedRecipient, tx);
422428
if (error) {
423429
quote.txFailed(`Transaction validation failed: ${error}`);

0 commit comments

Comments
 (0)