@0xsequence/relayer
Advanced tools
Comparing version 0.27.0 to 0.27.1
# @0xsequence/relayer | ||
## 0.27.1 | ||
### Patch Changes | ||
- fix waitReceipt polling logic | ||
## 0.27.0 | ||
@@ -4,0 +10,0 @@ |
@@ -554,4 +554,5 @@ 'use strict'; | ||
}); // TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported | ||
// TODO: fix backend to not return literal 'null' txnReceipt | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && (result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED')) { | ||
while (!result.receipt || !result.receipt.txnReceipt || result.receipt.txnReceipt === 'null' || result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED' || result.receipt.status === 'SENT') { | ||
await new Promise(r => setTimeout(r, wait)); | ||
@@ -558,0 +559,0 @@ result = await this.service.getMetaTxnReceipt({ |
@@ -554,4 +554,5 @@ 'use strict'; | ||
}); // TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported | ||
// TODO: fix backend to not return literal 'null' txnReceipt | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && (result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED')) { | ||
while (!result.receipt || !result.receipt.txnReceipt || result.receipt.txnReceipt === 'null' || result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED' || result.receipt.status === 'SENT') { | ||
await new Promise(r => setTimeout(r, wait)); | ||
@@ -558,0 +559,0 @@ result = await this.service.getMetaTxnReceipt({ |
@@ -546,4 +546,5 @@ import { providers, ethers, Signer } from 'ethers'; | ||
}); // TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported | ||
// TODO: fix backend to not return literal 'null' txnReceipt | ||
while ((!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && (result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED')) { | ||
while (!result.receipt || !result.receipt.txnReceipt || result.receipt.txnReceipt === 'null' || result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED' || result.receipt.status === 'SENT') { | ||
await new Promise(r => setTimeout(r, wait)); | ||
@@ -550,0 +551,0 @@ result = await this.service.getMetaTxnReceipt({ |
{ | ||
"name": "@0xsequence/relayer", | ||
"version": "0.27.0", | ||
"version": "0.27.1", | ||
"description": "relayer sub-package for Sequence", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer", |
@@ -58,5 +58,10 @@ import { TransactionResponse } from '@ethersproject/providers' | ||
// TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported | ||
// TODO: fix backend to not return literal 'null' txnReceipt | ||
while ( | ||
(!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') && | ||
(result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED') | ||
!result.receipt || | ||
!result.receipt.txnReceipt || | ||
result.receipt.txnReceipt === 'null' || | ||
result.receipt.status === 'UNKNOWN' || | ||
result.receipt.status === 'QUEUED' || | ||
result.receipt.status === 'SENT' | ||
) { | ||
@@ -63,0 +68,0 @@ await new Promise(r => setTimeout(r, wait)) |
140465
3203