fix unconfirmed balance not updating when receiving

This commit is contained in:
Matthew Fosse 2024-07-10 12:45:30 -07:00
parent eaed450739
commit dfdf16a6c2

View file

@ -271,8 +271,10 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
if (!(tx.inputAddresses?.contains(utxo.address) ?? false)) addressRecord.txCount++;
addressRecord.balance += utxo.value.toInt();
addressRecord.setAsUsed();
// update the unconfirmed balance when a new tx is added:
await updateBalance();
}
print("BEING ADDED HERE@@@@@@@@@@@@@@@@@@@@@@@");
transactionHistory.addOne(tx);
}