mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-28 21:30:41 +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:
@@ -116,16 +116,6 @@
|
||||
<div class="col-sm-10">
|
||||
<p>For more info see the <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target="_blank">BIP44 spec</a></p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="network-bip44" class="col-sm-2 control-label">Coin</label>
|
||||
<div class="col-sm-10">
|
||||
<select id="network-bip44" class="network form-control">
|
||||
<option value="bitcoin">Bitcoin</option>
|
||||
<option value="bitcoin-testnet">Bitcoin Testnet</option>
|
||||
<option value="litecoin">Litecoin</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="purpose" class="col-sm-2 control-label">
|
||||
<a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target="_blank">Purpose</a>
|
||||
@@ -205,17 +195,6 @@
|
||||
<div class="col-md-12">
|
||||
<h2>Derived Addresses</h2>
|
||||
<p>Note these addreses are derived from the <strong>BIP32 Extended Key</strong></p>
|
||||
<div class="form-group">
|
||||
<label for="network-address-type" class="col-sm-2 control-label">Coin</label>
|
||||
<div class="col-sm-10">
|
||||
<select id="network-address-type" class="network form-control">
|
||||
<option value="bitcoin">Bitcoin</option>
|
||||
<option value="bitcoin-testnet">Bitcoin Testnet</option>
|
||||
<option value="litecoin">Litecoin</option>
|
||||
<option value="dogecoin">Dogecoin</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>
|
||||
|
||||
+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