We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec1b5d7 commit 878fb6bCopy full SHA for 878fb6b
lib/wallets/wallet/intermediate/lib_monero_wallet.dart
@@ -767,8 +767,16 @@ abstract class LibMoneroWallet<T extends CryptonoteCurrency>
767
void onBalancesChanged({
768
required BigInt newBalance,
769
required BigInt newUnlockedBalance,
770
- }) {
771
- // do something?
+ }) async {
+ try {
772
+ await updateBalance();
773
+ await updateTransactions();
774
+ } catch (e, s) {
775
+ Logging.instance.log(
776
+ "onBalancesChanged(): $e\n$s",
777
+ level: LogLevel.Warning,
778
+ );
779
+ }
780
}
781
782
void onNewBlock(int nodeHeight) {
0 commit comments