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.mjs
CHANGED
|
@@ -6391,9 +6391,9 @@ var RpcChannel = class {
|
|
|
6391
6391
|
if (retries <= 0) {
|
|
6392
6392
|
throw new Error(`waitForTransaction timed-out with retries ${this.retries}`);
|
|
6393
6393
|
}
|
|
6394
|
+
retries -= 1;
|
|
6395
|
+
await wait(retryInterval);
|
|
6394
6396
|
}
|
|
6395
|
-
retries -= 1;
|
|
6396
|
-
await wait(retryInterval);
|
|
6397
6397
|
}
|
|
6398
6398
|
return txReceipt;
|
|
6399
6399
|
}
|
|
@@ -7007,9 +7007,9 @@ var RpcChannel2 = class {
|
|
|
7007
7007
|
if (retries <= 0) {
|
|
7008
7008
|
throw new Error(`waitForTransaction timed-out with retries ${this.retries}`);
|
|
7009
7009
|
}
|
|
7010
|
+
retries -= 1;
|
|
7011
|
+
await wait(retryInterval);
|
|
7010
7012
|
}
|
|
7011
|
-
retries -= 1;
|
|
7012
|
-
await wait(retryInterval);
|
|
7013
7013
|
}
|
|
7014
7014
|
return txReceipt;
|
|
7015
7015
|
}
|
|
@@ -7632,11 +7632,12 @@ var WebSocketChannel = class {
|
|
|
7632
7632
|
this.websocket.addEventListener("error", this.errorListener);
|
|
7633
7633
|
}
|
|
7634
7634
|
_processRequestQueue() {
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7635
|
+
const pending = this.requestQueue;
|
|
7636
|
+
this.requestQueue = [];
|
|
7637
|
+
logger.info(`WebSocket: Processing ${pending.length} queued requests.`);
|
|
7638
|
+
pending.forEach(({ method, params, resolve, reject }) => {
|
|
7638
7639
|
this.sendReceive(method, params).then(resolve).catch(reject);
|
|
7639
|
-
}
|
|
7640
|
+
});
|
|
7640
7641
|
}
|
|
7641
7642
|
async _restoreSubscriptions() {
|
|
7642
7643
|
const oldSubscriptions = Array.from(this.activeSubscriptions.values());
|