mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-11 05:14:46 +00:00
fix
This commit is contained in:
parent
cb76b22408
commit
df97c8d5f1
1 changed files with 6 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue