@0xsequence/relayer
Advanced tools
Comparing version 0.24.0 to 0.24.1
# @0xsequence/relayer | ||
## 0.24.1 | ||
### Patch Changes | ||
- relayer: wait for queued status instead of unknown | ||
## 0.24.0 | ||
@@ -4,0 +10,0 @@ |
@@ -494,5 +494,5 @@ 'use strict'; | ||
metaTxID: metaTxnHash | ||
}); | ||
}); // TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && result.receipt.status === 'UNKNOWN') { | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && (result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED')) { | ||
await new Promise(r => setTimeout(r, wait)); | ||
@@ -499,0 +499,0 @@ result = await this.service.getMetaTxnReceipt({ |
@@ -494,5 +494,5 @@ 'use strict'; | ||
metaTxID: metaTxnHash | ||
}); | ||
}); // TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && result.receipt.status === 'UNKNOWN') { | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && (result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED')) { | ||
await new Promise(r => setTimeout(r, wait)); | ||
@@ -499,0 +499,0 @@ result = await this.service.getMetaTxnReceipt({ |
@@ -486,5 +486,5 @@ import { providers, ethers, Signer } from 'ethers'; | ||
metaTxID: metaTxnHash | ||
}); | ||
}); // TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && result.receipt.status === 'UNKNOWN') { | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && (result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED')) { | ||
await new Promise(r => setTimeout(r, wait)); | ||
@@ -491,0 +491,0 @@ result = await this.service.getMetaTxnReceipt({ |
{ | ||
"name": "@0xsequence/relayer", | ||
"version": "0.24.0", | ||
"version": "0.24.1", | ||
"description": "relayer sub-package for Sequence", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer", |
@@ -57,3 +57,7 @@ import { TransactionResponse, BlockTag } from '@ethersproject/providers' | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && result.receipt.status === 'UNKNOWN') { | ||
// TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported | ||
while ( | ||
(!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && | ||
(result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED') | ||
) { | ||
await new Promise(r => setTimeout(r, wait)) | ||
@@ -60,0 +64,0 @@ result = await this.service.getMetaTxnReceipt({ metaTxID: metaTxnHash }) |
122545
2794