From 40844b6121b77e5c00a5efab4fdbabe91cd231ba Mon Sep 17 00:00:00 2001 From: cyan Date: Tue, 14 Apr 2026 13:05:58 +0200 Subject: [PATCH] fix: minor fix to the backupSeeds (#3181) --- lib/wownero/cw_wownero.dart | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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(); }