fix(cw_monero): transaction not appearing after send (#2268)

* fix: catch error in newly added fetchTransactions call
fix: null handling in cw_monero

* fix(cw_monero): transaction not appearing after send
This commit is contained in:
cyan
2025-05-15 19:48:43 +03:00
committed by GitHub
parent 557e1c9839
commit bc52cf485e
3 changed files with 7 additions and 9 deletions
-7
View File
@@ -593,13 +593,6 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
}
final sharedPreferences = await SharedPreferences.getInstance();
await sharedPreferences.setString(PreferencesKey.backgroundSyncLastTrigger(wallet.name), DateTime.now().add(Duration(minutes: 1)).toIso8601String());
unawaited(() {
try {
wallet.fetchTransactions();
} catch (e) {
printV(e);
}
}());
state = TransactionCommitted();
} catch (e) {
state = FailureState(translateErrorMessage(e, wallet.type, wallet.currency));