mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
mnemonic passphrase swb fix
This commit is contained in:
parent
b4a344ebad
commit
b5488c4c6c
1 changed files with 4 additions and 0 deletions
|
@ -282,6 +282,7 @@ abstract class SWB {
|
|||
backupWallet['id'] = manager.walletId;
|
||||
backupWallet['isFavorite'] = manager.isFavorite;
|
||||
backupWallet['mnemonic'] = await manager.mnemonic;
|
||||
backupWallet['mnemonicPassphrase'] = await manager.mnemonicPassphrase;
|
||||
backupWallet['coinName'] = manager.coin.name;
|
||||
backupWallet['storedChainHeight'] = DB.instance
|
||||
.get<dynamic>(boxName: manager.walletId, key: 'storedChainHeight');
|
||||
|
@ -363,6 +364,7 @@ abstract class SWB {
|
|||
walletId: manager.walletId,
|
||||
restoringStatus: StackRestoringStatus.restoring,
|
||||
mnemonic: mnemonic,
|
||||
mnemonicPassphrase: mnemonicPassphrase,
|
||||
);
|
||||
|
||||
if (_shouldCancelRestore) {
|
||||
|
@ -432,6 +434,7 @@ abstract class SWB {
|
|||
address: currentAddress,
|
||||
height: restoreHeight,
|
||||
mnemonic: mnemonic,
|
||||
mnemonicPassphrase: mnemonicPassphrase,
|
||||
);
|
||||
} catch (e, s) {
|
||||
Logging.instance.log("$e $s", level: LogLevel.Warning);
|
||||
|
@ -440,6 +443,7 @@ abstract class SWB {
|
|||
restoringStatus: StackRestoringStatus.failed,
|
||||
manager: manager,
|
||||
mnemonic: mnemonic,
|
||||
mnemonicPassphrase: mnemonicPassphrase,
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue