Update balance after sending

This commit is contained in:
Hector Chu 2024-04-28 19:46:07 +01:00
parent b39b2bbb99
commit a936a3b661

View file

@ -399,6 +399,10 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
return TxWitnessInput(stack: [key.signInput(digest), key.getPublic().toHex()]);
}).toList()).toHex();
tx.outputs = resp.outputId;
return tx;
return tx..addListener((transaction) async {
transaction.inputAddresses?.forEach(mwebUtxos.remove);
await updateUnspent();
await updateBalance();
});
}
}