@pushchain/core 0.1.19 → 0.1.20
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/package.json
CHANGED
|
@@ -249,7 +249,7 @@ class EvmClient {
|
|
|
249
249
|
* @param pollIntervalMs - How often to check (default: 4000ms)
|
|
250
250
|
*/
|
|
251
251
|
waitForConfirmations(_a) {
|
|
252
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ txHash, confirmations =
|
|
252
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ txHash, confirmations = 0, pollIntervalMs = 4000, }) {
|
|
253
253
|
const receipt = yield this.publicClient.waitForTransactionReceipt({
|
|
254
254
|
hash: txHash,
|
|
255
255
|
});
|
|
@@ -187,7 +187,7 @@ class SvmClient {
|
|
|
187
187
|
* @param timeoutMs - Max wait time in milliseconds (default: 90_000)
|
|
188
188
|
*/
|
|
189
189
|
waitForConfirmations(_a) {
|
|
190
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ txSignature, confirmations =
|
|
190
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ txSignature, confirmations = 0, timeoutMs = 90000, }) {
|
|
191
191
|
return this.executeWithFallback((connection) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
192
192
|
const start = Date.now();
|
|
193
193
|
while (Date.now() - start < timeoutMs) {
|