fix: ensure xmr/wow transactions updated on balance changed

This commit is contained in:
julian 2024-12-09 13:06:05 -06:00 committed by julian-CStack
parent ec1b5d7d2b
commit e9252a4d46

View file

@ -767,8 +767,16 @@ abstract class LibMoneroWallet<T extends CryptonoteCurrency>
void onBalancesChanged({
required BigInt newBalance,
required BigInt newUnlockedBalance,
}) {
// do something?
}) async {
try {
await updateBalance();
await updateTransactions();
} catch (e, s) {
Logging.instance.log(
"onBalancesChanged(): $e\n$s",
level: LogLevel.Warning,
);
}
}
void onNewBlock(int nodeHeight) {