@ethersphere/bee-js 10.1.1 → 10.1.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/mjs/bee.js CHANGED
@@ -1608,7 +1608,7 @@ export class Bee {
1608
1608
  const depth = getDepthForSize(size, encryption, erasureCodeLevel);
1609
1609
  const currentAmount = getAmountForDuration(batch.duration, chainState.currentPrice, blockTime);
1610
1610
  const currentCost = getStampCost(batch.depth, currentAmount);
1611
- const newCost = getStampCost(depth, currentAmount + amount);
1611
+ const newCost = getStampCost(Math.max(batch.depth, depth), currentAmount + amount);
1612
1612
  return newCost.minus(currentCost);
1613
1613
  }
1614
1614
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethersphere/bee-js",
3
- "version": "10.1.1",
3
+ "version": "10.1.2",
4
4
  "description": "Javascript client for Bee",
5
5
  "keywords": [
6
6
  "bee",