mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 04:13:49 +01:00
ADD: migrate AEZEED wallets
This commit is contained in:
parent
a70781180c
commit
b92c2577d0
1 changed files with 8 additions and 0 deletions
|
@ -364,6 +364,14 @@ export class AppStorage {
|
|||
break;
|
||||
case HDAezeedWallet.type:
|
||||
unserializedWallet = HDAezeedWallet.fromJson(key);
|
||||
// migrate password to this.passphrase field
|
||||
// remove this code somewhere in year 2022
|
||||
if (unserializedWallet.secret.includes(':')) {
|
||||
const [mnemonic, passphrase] = unserializedWallet.secret.split(':');
|
||||
unserializedWallet.secret = mnemonic;
|
||||
unserializedWallet.passphrase = passphrase;
|
||||
}
|
||||
|
||||
break;
|
||||
case SLIP39SegwitP2SHWallet.type:
|
||||
unserializedWallet = SLIP39SegwitP2SHWallet.fromJson(key);
|
||||
|
|
Loading…
Add table
Reference in a new issue