@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/cjs/bee.js +1 -1
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/mjs/bee.js +1 -1
- package/package.json +1 -1
package/dist/cjs/bee.js
CHANGED
|
@@ -1623,7 +1623,7 @@ class Bee {
|
|
|
1623
1623
|
const depth = (0, stamps_1.getDepthForSize)(size, encryption, erasureCodeLevel);
|
|
1624
1624
|
const currentAmount = (0, stamps_1.getAmountForDuration)(batch.duration, chainState.currentPrice, blockTime);
|
|
1625
1625
|
const currentCost = (0, stamps_1.getStampCost)(batch.depth, currentAmount);
|
|
1626
|
-
const newCost = (0, stamps_1.getStampCost)(depth, currentAmount + amount);
|
|
1626
|
+
const newCost = (0, stamps_1.getStampCost)(Math.max(batch.depth, depth), currentAmount + amount);
|
|
1627
1627
|
return newCost.minus(currentCost);
|
|
1628
1628
|
}
|
|
1629
1629
|
/**
|