From df97c8d5f17634d6db5c6875eebd6860d5d0f200 Mon Sep 17 00:00:00 2001 From: fosse Date: Fri, 1 Sep 2023 11:29:43 -0400 Subject: [PATCH] fix --- lib/src/screens/restore/wallet_restore_page.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/screens/restore/wallet_restore_page.dart b/lib/src/screens/restore/wallet_restore_page.dart index 9faf8ae83..189e204f8 100644 --- a/lib/src/screens/restore/wallet_restore_page.dart +++ b/lib/src/screens/restore/wallet_restore_page.dart @@ -397,6 +397,7 @@ class WalletRestorePage extends BasePage { derivationWithHistoryIndex = i; } } + DerivationInfo? derivationInfo; if (derivationsWithHistory > 1) { @@ -406,6 +407,11 @@ class WalletRestorePage extends BasePage { derivationInfo = derivations[derivationWithHistoryIndex]; } else if (derivationsWithHistory == 0) { // default derivation: + derivationInfo = DerivationInfo( + derivationType: derivationTypes[0], + derivationPath: "m/0'/1", + height: 0, + ); this.derivationType = derivationTypes[0]; this.derivationPath = "m/0'/1"; }