fix: double balance

This commit is contained in:
Rafael Saes 2024-05-22 17:41:10 -03:00
parent 6eb8f35e6c
commit 00ceb933e4

View file

@ -1645,9 +1645,7 @@ abstract class ElectrumWalletBase
try {
await updateUnspents(address);
final newBalance = await _fetchBalance(sh);
balance[currency]?.confirmed += newBalance.confirmed;
balance[currency]?.unconfirmed += newBalance.unconfirmed;
await updateBalance();
await _fetchAddressHistory(address, await getCurrentChainTip());
} catch (e, s) {