@xchainjs/xchain-bitcoin 0.18.0 → 0.18.1

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 CHANGED
@@ -1,3 +1,9 @@
1
+ # v.0.18.1 (2022-03-15)
2
+
3
+ ## Fix
4
+
5
+ - [Bug] Incorrect fee estimation by rounding down #503
6
+
1
7
  # v.0.18.0 (2022-03-08)
2
8
 
3
9
  ## Update
package/lib/index.esm.js CHANGED
@@ -85970,7 +85970,7 @@ var buildTx = function (_a) {
85970
85970
  throw new Error('No utxos to send');
85971
85971
  if (!validateAddress(recipient, network))
85972
85972
  throw new Error('Invalid address');
85973
- feeRateWhole = Number(feeRate.toFixed(0));
85973
+ feeRateWhole = Math.ceil(feeRate);
85974
85974
  compiledMemo = memo ? compileMemo(memo) : null;
85975
85975
  targetOutputs = [];
85976
85976
  //1. add output amount and recipient to targets