fix: minor fix to the backupSeeds (#3181)

This commit is contained in:
cyan
2026-04-14 13:05:58 +02:00
committed by GitHub
parent 0679dbf547
commit 40844b6121
+9 -3
View File
@@ -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();
}