From c39c21cb640b00422bcc3ea7ddfc8728a2dcdbc6 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Fri, 26 Apr 2024 14:28:19 +0300 Subject: [PATCH] Make the default BIP39 the 84 derivation path --- lib/src/screens/restore/wallet_restore_page.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/src/screens/restore/wallet_restore_page.dart b/lib/src/screens/restore/wallet_restore_page.dart index 7691d74c3..ed51092df 100644 --- a/lib/src/screens/restore/wallet_restore_page.dart +++ b/lib/src/screens/restore/wallet_restore_page.dart @@ -95,6 +95,7 @@ class WalletRestorePage extends BasePage { final GlobalKey walletRestoreFromSeedFormKey; final GlobalKey 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) {