mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 11:16:36 +00:00
fix: ensure xmr/wow transactions updated on balance changed
This commit is contained in:
parent
ec1b5d7d2b
commit
e9252a4d46
1 changed files with 10 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue