mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-24 03:10:40 +00:00
Coin selection is done from a single control
There were three places to select the coin type, which was getting confusing. Only one place to select it is needed.
This commit is contained in:
+2
-9
@@ -15,8 +15,6 @@
|
||||
var DOM = {};
|
||||
DOM.network = $(".network");
|
||||
DOM.phraseNetwork = $("#network-phrase");
|
||||
DOM.bip44Network = $("#network-bip44");
|
||||
DOM.addressNetwork = $("#network-address-type");
|
||||
DOM.phrase = $(".phrase");
|
||||
DOM.passphrase = $(".passphrase");
|
||||
DOM.generate = $(".generate");
|
||||
@@ -84,15 +82,10 @@
|
||||
}
|
||||
else if (n == "dogecoin") {
|
||||
network = Bitcoin.networks.dogecoin;
|
||||
var NO_BIP44_VALUE = 9999;
|
||||
DOM.bip44coin.val(NO_BIP44_VALUE); // This coin is not in BIP44
|
||||
var UNOFFICIAL_BIP44_COIN = 9999;
|
||||
DOM.bip44coin.val(UNOFFICIAL_BIP44_COIN); // This coin is not in BIP44
|
||||
}
|
||||
setBip44DerivationPath();
|
||||
DOM.phraseNetwork.val(n);
|
||||
DOM.bip44Network.val(n);
|
||||
if(e.target != DOM.addressNetwork.dom){
|
||||
DOM.addressNetwork.val(n);
|
||||
}
|
||||
delayedPhraseChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user