use default derivation type when restoring from qr code

This commit is contained in:
fosse 2023-11-20 10:23:25 -05:00
parent 59f67fac7c
commit 0e8647b2f5
2 changed files with 1 additions and 3 deletions

View file

@ -100,7 +100,7 @@ abstract class WalletRestorationFromQRVMBase extends WalletCreationVM with Store
name: name, mnemonic: restoreWallet.mnemonicSeed ?? '', password: password); name: name, mnemonic: restoreWallet.mnemonicSeed ?? '', password: password);
case WalletType.nano: case WalletType.nano:
return nano!.createNanoRestoreWalletFromSeedCredentials( return nano!.createNanoRestoreWalletFromSeedCredentials(
name: name, mnemonic: restoreWallet.mnemonicSeed ?? '', password: password); name: name, mnemonic: restoreWallet.mnemonicSeed ?? '', password: password, derivationType: DerivationType.def);
default: default:
throw Exception('Unexpected type: ${type.toString()}'); throw Exception('Unexpected type: ${type.toString()}');
} }

View file

@ -239,8 +239,6 @@ abstract class WalletRestoreViewModelBase extends WalletCreationVM with Store {
default: default:
break; break;
} }
// throw Exception('Unexpected type: ${type.toString()}');
return [DerivationType.def]; return [DerivationType.def];
} }