mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-21 18:24:41 +00:00
small fix just incase
This commit is contained in:
parent
01ba5f3679
commit
1b66afb3e1
1 changed files with 8 additions and 2 deletions
|
@ -416,8 +416,14 @@ Future<void> pinEncryptionMigration(
|
||||||
|
|
||||||
// now do the same for all wallet passwords:
|
// now do the same for all wallet passwords:
|
||||||
await Future.forEach(walletInfoSource.values, (WalletInfo walletInfo) async {
|
await Future.forEach(walletInfoSource.values, (WalletInfo walletInfo) async {
|
||||||
String walletPassword = await keyService.getWalletPasswordV1(walletName: walletInfo.name);
|
try {
|
||||||
await keyService.saveWalletPasswordV2(walletName: walletInfo.name, password: walletPassword);
|
|
||||||
|
String walletPassword = await keyService.getWalletPasswordV1(walletName: walletInfo.name);
|
||||||
|
await keyService.saveWalletPasswordV2(walletName: walletInfo.name, password: walletPassword);
|
||||||
|
} catch (e) {
|
||||||
|
// probably failed to get wallet password
|
||||||
|
print("pinEncryptionMigration: $e");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// failure isn't really an option since we'll be updating how pins are stored and used
|
// failure isn't really an option since we'll be updating how pins are stored and used
|
||||||
|
|
Loading…
Reference in a new issue