mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-23 07:38:49 +00:00
clear out null verified wallets on startup
This commit is contained in:
parent
7ad60778aa
commit
57ccfff34f
1 changed files with 9 additions and 2 deletions
|
@ -164,8 +164,15 @@ class Wallets extends ChangeNotifier {
|
||||||
try {
|
try {
|
||||||
final walletId = entry.value.walletId;
|
final walletId = entry.value.walletId;
|
||||||
|
|
||||||
final isVerified =
|
late final bool isVerified;
|
||||||
|
try {
|
||||||
|
isVerified =
|
||||||
await walletsService.isMnemonicVerified(walletId: walletId);
|
await walletsService.isMnemonicVerified(walletId: walletId);
|
||||||
|
} catch (e, s) {
|
||||||
|
Logging.instance.log("$e $s", level: LogLevel.Warning);
|
||||||
|
isVerified = false;
|
||||||
|
}
|
||||||
|
|
||||||
Logging.instance.log(
|
Logging.instance.log(
|
||||||
"LOADING WALLET: ${entry.value.toString()} IS VERIFIED: $isVerified",
|
"LOADING WALLET: ${entry.value.toString()} IS VERIFIED: $isVerified",
|
||||||
level: LogLevel.Info);
|
level: LogLevel.Info);
|
||||||
|
|
Loading…
Reference in a new issue