From ba39052970543cf6cfc7454231ebc4e873b0875c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Tue, 24 May 2022 13:37:20 +0100 Subject: [PATCH] chore: fix the fee amount on sendCoinsBatch --- lib/plugins/wallet/bitcoind/bitcoind.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/wallet/bitcoind/bitcoind.js b/lib/plugins/wallet/bitcoind/bitcoind.js index 081be7eb..6d7c8da3 100644 --- a/lib/plugins/wallet/bitcoind/bitcoind.js +++ b/lib/plugins/wallet/bitcoind/bitcoind.js @@ -95,7 +95,7 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) { function sendCoinsBatch (account, txs, cryptoCode, feeMultiplier) { return checkCryptoCode(cryptoCode) .then(() => calculateFeeDiscount(feeMultiplier)) - .then(newFee => fetch('settxfee', [newFee])) + .then(newFee => fetch('settxfee', [newFee.toNumber()])) .then(() => _.reduce((acc, value) => ({ ...acc, [value.toAddress]: _.isNil(acc[value.toAddress])