diff --git a/lib/plugins/wallet/monerod/monerod.js b/lib/plugins/wallet/monerod/monerod.js index 200593ab..4dccc759 100644 --- a/lib/plugins/wallet/monerod/monerod.js +++ b/lib/plugins/wallet/monerod/monerod.js @@ -131,7 +131,7 @@ function newAddress (account, info, tx, settings, operatorId) { function addressBalance (address, confirmations) { return fetch('get_address_index', { address: address }) .then(addressRes => fetch('get_balance', { account_index: addressRes.index.major, address_indices: [addressRes.index.minor] })) - .then(res => BN(res.unlocked_balance)) + .then(res => BN(_.find(it => it.address === address, res.per_subaddress).unlocked_balance)) .catch(err => handleError(err)) }