Remove duplicate derivations

handle default case
This commit is contained in:
OmarHatem 2024-04-30 02:42:15 +03:00
parent 59f339ba90
commit 6189b1c798
2 changed files with 1 additions and 13 deletions

View file

@ -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'",

View file

@ -393,7 +393,7 @@ class WalletRestorePage extends BasePage {
this.derivationInfo = dInfo;
if (this.derivationInfo == null) {
walletRestoreViewModel.state = InitialExecutionState();
this.derivationInfo = walletRestoreViewModel.getDefaultDerivation();
return;
}