clear out null verified wallets on startup

This commit is contained in:
julian 2022-09-12 15:35:07 -06:00
parent 7ad60778aa
commit 57ccfff34f

View file

@ -164,8 +164,15 @@ class Wallets extends ChangeNotifier {
try {
final walletId = entry.value.walletId;
final isVerified =
late final bool isVerified;
try {
isVerified =
await walletsService.isMnemonicVerified(walletId: walletId);
} catch (e, s) {
Logging.instance.log("$e $s", level: LogLevel.Warning);
isVerified = false;
}
Logging.instance.log(
"LOADING WALLET: ${entry.value.toString()} IS VERIFIED: $isVerified",
level: LogLevel.Info);