Comparing version 0.0.21 to 0.0.22
@@ -51,3 +51,3 @@ const bitcoin = require('bitcoinjs-lib') | ||
transactionCount+=addressesRet.transactionCount | ||
balance+=addressesRet.balance | ||
balance+=Number(addressesRet.balance).toFixed(8) | ||
}else{ | ||
@@ -54,0 +54,0 @@ if(checkVisibleAddresses){ |
@@ -19,3 +19,3 @@ import broadcastTransaction from './broadcastTransaction' | ||
// https://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending-legacy-non-segwit-p2pkh-p2sh | ||
// https://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending-legacy-non-segwit-p2pkh-p2sh | ||
const changeAmount = Math.round(inputsBalance*100000000-amount-fee) | ||
@@ -22,0 +22,0 @@ txb.addOutput(destAddress, amount) |
{ | ||
"name": "doichain", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "A js-Doichain library. The goal is to fully cover the Doichain protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
35262