@ethersphere/bee-js 7.0.2 → 7.0.4

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/cjs/bee.js CHANGED
@@ -1360,7 +1360,7 @@ class Bee {
1360
1360
  return stake.getRedistributionState(this.getRequestOptionsForCall(options));
1361
1361
  }
1362
1362
  async waitForUsablePostageStamp(id, timeout = 240000) {
1363
- const TIME_STEP = 2000;
1363
+ const TIME_STEP = 3000;
1364
1364
  for (let time = 0; time < timeout; time += TIME_STEP) {
1365
1365
  try {
1366
1366
  const stamp = await this.getPostageBatch(id);
@@ -1368,12 +1368,7 @@ class Bee {
1368
1368
  return;
1369
1369
  }
1370
1370
  }
1371
- catch (error) {
1372
- const message = error?.response?.data?.message || error?.message || '';
1373
- if (!message.includes('batch not usable')) {
1374
- throw error;
1375
- }
1376
- }
1371
+ catch (error) { }
1377
1372
  await cafe_utility_1.System.sleepMillis(TIME_STEP);
1378
1373
  }
1379
1374
  throw new error_1.BeeError('Timeout on waiting for postage stamp to become usable');