mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-22 18:54:47 +00:00
use default derivation type when restoring from qr code
This commit is contained in:
parent
59f67fac7c
commit
0e8647b2f5
2 changed files with 1 additions and 3 deletions
|
@ -100,7 +100,7 @@ abstract class WalletRestorationFromQRVMBase extends WalletCreationVM with Store
|
|||
name: name, mnemonic: restoreWallet.mnemonicSeed ?? '', password: password);
|
||||
case WalletType.nano:
|
||||
return nano!.createNanoRestoreWalletFromSeedCredentials(
|
||||
name: name, mnemonic: restoreWallet.mnemonicSeed ?? '', password: password);
|
||||
name: name, mnemonic: restoreWallet.mnemonicSeed ?? '', password: password, derivationType: DerivationType.def);
|
||||
default:
|
||||
throw Exception('Unexpected type: ${type.toString()}');
|
||||
}
|
||||
|
|
|
@ -239,8 +239,6 @@ abstract class WalletRestoreViewModelBase extends WalletCreationVM with Store {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// throw Exception('Unexpected type: ${type.toString()}');
|
||||
return [DerivationType.def];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue