mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 09:29:48 +00:00
Remove duplicate derivations
handle default case
This commit is contained in:
parent
59f339ba90
commit
6189b1c798
2 changed files with 1 additions and 13 deletions
|
@ -46,12 +46,6 @@ Map<DerivationType, List<DerivationInfo>> electrum_derivations = {
|
|||
description: "Non-standard native segwit",
|
||||
scriptType: "p2wpkh",
|
||||
),
|
||||
DerivationInfo(
|
||||
derivationType: DerivationType.bip39,
|
||||
derivationPath: "m/44'/0'/0'",
|
||||
description: "Copay native segwit",
|
||||
scriptType: "p2wpkh",
|
||||
),
|
||||
DerivationInfo(
|
||||
derivationType: DerivationType.bip39,
|
||||
derivationPath: "m/44'/0'/0'",
|
||||
|
@ -64,12 +58,6 @@ Map<DerivationType, List<DerivationInfo>> electrum_derivations = {
|
|||
description: "Samourai Deposit",
|
||||
scriptType: "p2wpkh",
|
||||
),
|
||||
DerivationInfo(
|
||||
derivationType: DerivationType.bip39,
|
||||
derivationPath: "m/84'/0'/0'",
|
||||
description: "Samourai Deposit",
|
||||
scriptType: "p2wpkh",
|
||||
),
|
||||
DerivationInfo(
|
||||
derivationType: DerivationType.bip39,
|
||||
derivationPath: "m/84'/0'/2147483644'",
|
||||
|
|
|
@ -393,7 +393,7 @@ class WalletRestorePage extends BasePage {
|
|||
|
||||
this.derivationInfo = dInfo;
|
||||
if (this.derivationInfo == null) {
|
||||
walletRestoreViewModel.state = InitialExecutionState();
|
||||
this.derivationInfo = walletRestoreViewModel.getDefaultDerivation();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue