mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-04-27 21:54:44 +00:00
Add reset cache for monero wallet if wallets files are not correspond.
This commit is contained in:
parent
a2206f6fbd
commit
2a0556720c
1 changed files with 5 additions and 2 deletions
|
@ -123,10 +123,13 @@ class MoneroWalletService extends WalletService<
|
|||
} catch (e) {
|
||||
// TODO: Implement Exception for wallet list service.
|
||||
|
||||
if (e.toString().contains('bad_alloc') ||
|
||||
if ((e.toString().contains('bad_alloc') ||
|
||||
(e is WalletOpeningException &&
|
||||
(e.message == 'std::bad_alloc' ||
|
||||
e.message.contains('bad_alloc')))) {
|
||||
e.message.contains('bad_alloc')))) ||
|
||||
(e.toString().contains('does not correspond') ||
|
||||
(e is WalletOpeningException &&
|
||||
e.message.contains('does not correspond')))) {
|
||||
await restoreOrResetWalletFiles(name);
|
||||
return openWallet(name, password);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue