mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-19 05:58:50 +02:00
fix: catch error in newly added fetchTransactions call (#2265)
fix: null handling in cw_monero
This commit is contained in:
@@ -593,7 +593,13 @@ 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(wallet.fetchTransactions());
|
||||
unawaited(() {
|
||||
try {
|
||||
wallet.fetchTransactions();
|
||||
} catch (e) {
|
||||
printV(e);
|
||||
}
|
||||
}());
|
||||
state = TransactionCommitted();
|
||||
} catch (e) {
|
||||
state = FailureState(translateErrorMessage(e, wallet.type, wallet.currency));
|
||||
|
||||
Reference in New Issue
Block a user