fix "blank mnemonic" errors when using only seed

This is a follow up to #486 which was reverted because of a failed test which should now pass
This commit is contained in:
Sylvia G
2021-10-02 20:55:08 +03:00
parent c4f0c2908f
commit 874b6d4e08
2 changed files with 25 additions and 9 deletions

View File

@@ -210,7 +210,7 @@
network.onSelect();
adjustNetworkForSegwit();
if (seed != null) {
phraseChanged();
seedChanged()
}
else {
rootKeyChanged();
@@ -225,12 +225,7 @@
else {
DOM.bip32path.prop("readonly", true);
clients[clientIndex].onSelect();
if (seed != null) {
phraseChanged();
}
else {
rootKeyChanged();
}
rootKeyChanged();
}
}
@@ -455,7 +450,9 @@
else {
network = libs.bitcoin.networks.litecoinXprv;
}
phraseChanged();
// Can't use rootKeyChanged because validation will fail as we changed
// the network but the version bytes stayed as previously.
seedChanged();
}
function toggleSplitMnemonic() {
@@ -601,7 +598,7 @@
}
function bitcoinCashAddressTypeChange() {
phraseChanged();
rootKeyChanged();
}
function toggleIndexes() {