Skip to content

Commit d009088

Browse files
authored
Merge pull request #59 from cypherstack/ui-testing
clear out null verified wallets on startup
2 parents 7ad6077 + 57ccfff commit d009088

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/services/wallets.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,15 @@ class Wallets extends ChangeNotifier {
164164
try {
165165
final walletId = entry.value.walletId;
166166

167-
final isVerified =
168-
await walletsService.isMnemonicVerified(walletId: walletId);
167+
late final bool isVerified;
168+
try {
169+
isVerified =
170+
await walletsService.isMnemonicVerified(walletId: walletId);
171+
} catch (e, s) {
172+
Logging.instance.log("$e $s", level: LogLevel.Warning);
173+
isVerified = false;
174+
}
175+
169176
Logging.instance.log(
170177
"LOADING WALLET: ${entry.value.toString()} IS VERIFIED: $isVerified",
171178
level: LogLevel.Info);

0 commit comments

Comments
 (0)