@0xsequence/relayer 0.42.4 → 0.42.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -723,15 +723,7 @@ class RpcRelayer extends BaseRelayer {
|
|
|
723
723
|
metaTxID: metaTxnId
|
|
724
724
|
});
|
|
725
725
|
|
|
726
|
-
if (
|
|
727
|
-
throw new Error('missing expected receipt');
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
if (!receipt.txnReceipt) {
|
|
731
|
-
throw new Error('missing expected transaction receipt');
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
if (FINAL_STATUSES.includes(receipt.status)) {
|
|
726
|
+
if (receipt && receipt.txnReceipt && receipt.txnReceipt !== 'null' && FINAL_STATUSES.includes(receipt.status)) {
|
|
735
727
|
return {
|
|
736
728
|
receipt
|
|
737
729
|
};
|
|
@@ -723,15 +723,7 @@ class RpcRelayer extends BaseRelayer {
|
|
|
723
723
|
metaTxID: metaTxnId
|
|
724
724
|
});
|
|
725
725
|
|
|
726
|
-
if (
|
|
727
|
-
throw new Error('missing expected receipt');
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
if (!receipt.txnReceipt) {
|
|
731
|
-
throw new Error('missing expected transaction receipt');
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
if (FINAL_STATUSES.includes(receipt.status)) {
|
|
726
|
+
if (receipt && receipt.txnReceipt && receipt.txnReceipt !== 'null' && FINAL_STATUSES.includes(receipt.status)) {
|
|
735
727
|
return {
|
|
736
728
|
receipt
|
|
737
729
|
};
|
|
@@ -715,15 +715,7 @@ class RpcRelayer extends BaseRelayer {
|
|
|
715
715
|
metaTxID: metaTxnId
|
|
716
716
|
});
|
|
717
717
|
|
|
718
|
-
if (
|
|
719
|
-
throw new Error('missing expected receipt');
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
if (!receipt.txnReceipt) {
|
|
723
|
-
throw new Error('missing expected transaction receipt');
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
if (FINAL_STATUSES.includes(receipt.status)) {
|
|
718
|
+
if (receipt && receipt.txnReceipt && receipt.txnReceipt !== 'null' && FINAL_STATUSES.includes(receipt.status)) {
|
|
727
719
|
return {
|
|
728
720
|
receipt
|
|
729
721
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/relayer",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.5",
|
|
4
4
|
"description": "relayer sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"typecheck": "tsc --noEmit"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@0xsequence/abi": "^0.42.
|
|
21
|
-
"@0xsequence/config": "^0.42.
|
|
22
|
-
"@0xsequence/transactions": "^0.42.
|
|
23
|
-
"@0xsequence/utils": "^0.42.
|
|
20
|
+
"@0xsequence/abi": "^0.42.5",
|
|
21
|
+
"@0xsequence/config": "^0.42.5",
|
|
22
|
+
"@0xsequence/transactions": "^0.42.5",
|
|
23
|
+
"@0xsequence/utils": "^0.42.5",
|
|
24
24
|
"@ethersproject/providers": "^5.5.1",
|
|
25
25
|
"ethers": "^5.5.2",
|
|
26
26
|
"fetch-ponyfill": "^7.1.0"
|
package/src/rpc-relayer/index.ts
CHANGED
|
@@ -66,15 +66,12 @@ export class RpcRelayer extends BaseRelayer implements Relayer {
|
|
|
66
66
|
try {
|
|
67
67
|
const { receipt } = await this.service.getMetaTxnReceipt({ metaTxID: metaTxnId })
|
|
68
68
|
|
|
69
|
-
if (
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (FINAL_STATUSES.includes(receipt.status as proto.ETHTxnStatus)) {
|
|
69
|
+
if (
|
|
70
|
+
receipt &&
|
|
71
|
+
receipt.txnReceipt &&
|
|
72
|
+
receipt.txnReceipt !== 'null' &&
|
|
73
|
+
FINAL_STATUSES.includes(receipt.status as proto.ETHTxnStatus)
|
|
74
|
+
) {
|
|
78
75
|
return { receipt }
|
|
79
76
|
}
|
|
80
77
|
} catch (e) {
|