Skip to content

Commit

Permalink
fix: ensure xmr/wow transactions updated on balance changed
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-CStack committed Dec 9, 2024
1 parent ec1b5d7 commit e9252a4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/wallets/wallet/intermediate/lib_monero_wallet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e9252a4

Please sign in to comment.