From 2cafe074b24fbe251b0ed6f9da3b6828995475c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Tue, 15 Jun 2021 22:40:48 +0100 Subject: [PATCH] fix: add missing decimal places number --- lib/plugins/wallet/pazuz-wallet/pazuz-wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/wallet/pazuz-wallet/pazuz-wallet.js b/lib/plugins/wallet/pazuz-wallet/pazuz-wallet.js index e90ec406..44a29f47 100644 --- a/lib/plugins/wallet/pazuz-wallet/pazuz-wallet.js +++ b/lib/plugins/wallet/pazuz-wallet/pazuz-wallet.js @@ -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 } })