mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
Make the default BIP39 the 84 derivation path
This commit is contained in:
parent
4b73df5d91
commit
c39c21cb64
1 changed files with 7 additions and 1 deletions
|
@ -95,6 +95,7 @@ class WalletRestorePage extends BasePage {
|
|||
final GlobalKey<WalletRestoreFromSeedFormState> walletRestoreFromSeedFormKey;
|
||||
final GlobalKey<WalletRestoreFromKeysFromState> walletRestoreFromKeysFormKey;
|
||||
final FocusNode _blockHeightFocusNode;
|
||||
|
||||
// DerivationType derivationType = DerivationType.unknown;
|
||||
// String? derivationPath = null;
|
||||
DerivationInfo? derivationInfo;
|
||||
|
@ -372,7 +373,12 @@ class WalletRestorePage extends BasePage {
|
|||
} else if (derivationsWithHistory == 1) {
|
||||
dInfo = derivations[derivationWithHistoryIndex];
|
||||
} else if (derivationsWithHistory == 0 && derivations.isNotEmpty) {
|
||||
dInfo = derivations.first;
|
||||
dInfo = DerivationInfo(
|
||||
derivationType: DerivationType.bip39,
|
||||
derivationPath: "m/84'/0'/0'",
|
||||
description: "Standard BIP84 native segwit",
|
||||
scriptType: "p2wpkh",
|
||||
);
|
||||
}
|
||||
|
||||
if (dInfo == null) {
|
||||
|
|
Loading…
Reference in a new issue