chore: fix the fee amount on sendCoinsBatch

This commit is contained in:
Sérgio Salgado 2022-05-24 13:37:20 +01:00
parent ac2b3f1d80
commit ba39052970

View file

@ -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])