Use spendable amount for balance
This commit is contained in:
parent
fa652b8e74
commit
f674f64f58
1 changed files with 1 additions and 2 deletions
|
|
@ -52,8 +52,7 @@ function sendCoins (account, address, cryptoAtoms, cryptoCode) {
|
||||||
function balance (account, cryptoCode) {
|
function balance (account, cryptoCode) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => getWallet(account))
|
.then(() => getWallet(account))
|
||||||
// TODO This was previously spendableConfirmedBalance, what happened to it on v2?
|
.then(wallet => BN(wallet._wallet.spendableBalanceString))
|
||||||
.then(wallet => BN(wallet._wallet.confirmedBalanceString))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function newAddress (account, info) {
|
function newAddress (account, info) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue