mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-18 00:12:18 +00:00
Merge pull request #522 from secinthenet/fix-seed-only-coin-switch2
fix "blank mnemonic" errors when using only seed
This commit is contained in:
@@ -217,7 +217,7 @@
|
||||
network.onSelect();
|
||||
adjustNetworkForSegwit();
|
||||
if (seed != null) {
|
||||
phraseChanged();
|
||||
seedChanged()
|
||||
}
|
||||
else {
|
||||
rootKeyChanged();
|
||||
@@ -232,12 +232,7 @@
|
||||
else {
|
||||
DOM.bip32path.prop("readonly", true);
|
||||
clients[clientIndex].onSelect();
|
||||
if (seed != null) {
|
||||
phraseChanged();
|
||||
}
|
||||
else {
|
||||
rootKeyChanged();
|
||||
}
|
||||
rootKeyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -491,7 +486,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() {
|
||||
@@ -637,7 +634,7 @@
|
||||
}
|
||||
|
||||
function bitcoinCashAddressTypeChange() {
|
||||
phraseChanged();
|
||||
rootKeyChanged();
|
||||
}
|
||||
|
||||
function toggleIndexes() {
|
||||
|
||||
Reference in New Issue
Block a user