starknet 10.6.0 → 10.6.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/CHANGELOG.md +14 -0
- package/dist/index.global.js +9 -8
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6574,9 +6574,9 @@ var RpcChannel = class {
|
|
|
6574
6574
|
if (retries <= 0) {
|
|
6575
6575
|
throw new Error(`waitForTransaction timed-out with retries ${this.retries}`);
|
|
6576
6576
|
}
|
|
6577
|
+
retries -= 1;
|
|
6578
|
+
await wait(retryInterval);
|
|
6577
6579
|
}
|
|
6578
|
-
retries -= 1;
|
|
6579
|
-
await wait(retryInterval);
|
|
6580
6580
|
}
|
|
6581
6581
|
return txReceipt;
|
|
6582
6582
|
}
|
|
@@ -7190,9 +7190,9 @@ var RpcChannel2 = class {
|
|
|
7190
7190
|
if (retries <= 0) {
|
|
7191
7191
|
throw new Error(`waitForTransaction timed-out with retries ${this.retries}`);
|
|
7192
7192
|
}
|
|
7193
|
+
retries -= 1;
|
|
7194
|
+
await wait(retryInterval);
|
|
7193
7195
|
}
|
|
7194
|
-
retries -= 1;
|
|
7195
|
-
await wait(retryInterval);
|
|
7196
7196
|
}
|
|
7197
7197
|
return txReceipt;
|
|
7198
7198
|
}
|
|
@@ -7815,11 +7815,12 @@ var WebSocketChannel = class {
|
|
|
7815
7815
|
this.websocket.addEventListener("error", this.errorListener);
|
|
7816
7816
|
}
|
|
7817
7817
|
_processRequestQueue() {
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7818
|
+
const pending = this.requestQueue;
|
|
7819
|
+
this.requestQueue = [];
|
|
7820
|
+
logger.info(`WebSocket: Processing ${pending.length} queued requests.`);
|
|
7821
|
+
pending.forEach(({ method, params, resolve, reject }) => {
|
|
7821
7822
|
this.sendReceive(method, params).then(resolve).catch(reject);
|
|
7822
|
-
}
|
|
7823
|
+
});
|
|
7823
7824
|
}
|
|
7824
7825
|
async _restoreSubscriptions() {
|
|
7825
7826
|
const oldSubscriptions = Array.from(this.activeSubscriptions.values());
|