diff --git a/lib/wownero/cw_wownero.dart b/lib/wownero/cw_wownero.dart index 9f6b4ad78..8ac6064dc 100644 --- a/lib/wownero/cw_wownero.dart +++ b/lib/wownero/cw_wownero.dart @@ -379,9 +379,15 @@ class CWWownero extends Wownero { final flutterSecureStorage = secureStorageShared; final keyService = KeyService(flutterSecureStorage); final password = await keyService.getWalletPassword(walletName: w.name); - final wallet = await walletService.openWallet(w.name, password); - await havenSeedStore.add(HavenSeedStore(id: wallet.id, seed: wallet.seed)); - wallet.close(); + String seed = "unknown"; + try { + final wallet = await walletService.openWallet(w.name, password); + seed = wallet.seed; + wallet.close(); + } catch (e) { + seed += "\n$e"; + } + await havenSeedStore.add(HavenSeedStore(id: w.id, seed: seed)); } await havenSeedStore.flush(); }