mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-25 05:58:42 +01:00
fix: minor fix to the backupSeeds (#3181)
This commit is contained in:
@@ -379,9 +379,15 @@ class CWWownero extends Wownero {
|
|||||||
final flutterSecureStorage = secureStorageShared;
|
final flutterSecureStorage = secureStorageShared;
|
||||||
final keyService = KeyService(flutterSecureStorage);
|
final keyService = KeyService(flutterSecureStorage);
|
||||||
final password = await keyService.getWalletPassword(walletName: w.name);
|
final password = await keyService.getWalletPassword(walletName: w.name);
|
||||||
final wallet = await walletService.openWallet(w.name, password);
|
String seed = "unknown";
|
||||||
await havenSeedStore.add(HavenSeedStore(id: wallet.id, seed: wallet.seed));
|
try {
|
||||||
wallet.close();
|
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();
|
await havenSeedStore.flush();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user