This commit is contained in:
fosse 2023-09-01 11:29:43 -04:00
parent cb76b22408
commit df97c8d5f1

View file

@ -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";
}