fix: add missing decimal places number

This commit is contained in:
José Oliveira 2021-06-15 22:40:48 +01:00 committed by Josh Harvey
parent ea44478b48
commit 2cafe074b2

View file

@ -48,7 +48,7 @@ function sendCoins (account, tx, settings, operatorId) {
.then(({ data }) => {
if (data.error && data.error.errorCode === 'sc-001') throw new E.InsufficientFundsError()
else if (data.error) throw new Error(JSON.stringify(data.error))
const fee = new BN(data.fee).decimalPlaces()
const fee = new BN(data.fee).decimalPlaces(0)
const txid = data.txid
return { txid, fee }
})