@sodax/sdk 2.0.0-rc.1 → 2.0.0-rc.2
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.
package/dist/index.mjs
CHANGED
|
@@ -2764,7 +2764,7 @@ var spokeChainConfig = {
|
|
|
2764
2764
|
walletAddress: "",
|
|
2765
2765
|
pollingConfig: {
|
|
2766
2766
|
pollingIntervalMs: 750,
|
|
2767
|
-
maxTimeoutMs:
|
|
2767
|
+
maxTimeoutMs: 15e3
|
|
2768
2768
|
// aligns with blockhash expiry timeout.
|
|
2769
2769
|
}
|
|
2770
2770
|
},
|
|
@@ -22846,7 +22846,7 @@ var SolanaSpokeService = class _SolanaSpokeService {
|
|
|
22846
22846
|
while (Date.now() < deadline) {
|
|
22847
22847
|
try {
|
|
22848
22848
|
const tx = await this.connection.getTransaction(txHash, {
|
|
22849
|
-
commitment: "
|
|
22849
|
+
commitment: "confirmed",
|
|
22850
22850
|
maxSupportedTransactionVersion: 0
|
|
22851
22851
|
});
|
|
22852
22852
|
if (tx) {
|
|
@@ -22863,7 +22863,7 @@ var SolanaSpokeService = class _SolanaSpokeService {
|
|
|
22863
22863
|
ok: true,
|
|
22864
22864
|
value: {
|
|
22865
22865
|
status: "timeout",
|
|
22866
|
-
error: new Error(`Timed out after ${maxTimeoutMs}ms waiting for
|
|
22866
|
+
error: new Error(`Timed out after ${maxTimeoutMs}ms waiting for confirmation for ${txHash}`)
|
|
22867
22867
|
}
|
|
22868
22868
|
};
|
|
22869
22869
|
}
|