fix to switch bip44 coin type path for mycelium when switching between bitcoin and bitcoin-testnet

This commit is contained in:
Robert Johnson
2014-10-14 17:40:19 -05:00
parent dc55c6b063
commit 9b5f4cc7df
2 changed files with 6 additions and 0 deletions

View File

@@ -33893,6 +33893,7 @@ var Mnemonic = function(language) {
DOM.indexToggle = $(".index-toggle");
DOM.addressToggle = $(".address-toggle");
DOM.privateKeyToggle = $(".private-key-toggle");
DOM.myceliumPath = $("#mycelium-path");
var derivationPath = $(".tab-pane.active .path").val();
@@ -33924,10 +33925,12 @@ var Mnemonic = function(language) {
if (n == "bitcoin") {
network = Bitcoin.networks.bitcoin;
DOM.bip44coin.val(0);
DOM.myceliumPath.val("m/44'/0'/0'/0");
}
else if (n == "bitcoin-testnet") {
network = Bitcoin.networks.testnet;
DOM.bip44coin.val(1);
DOM.myceliumPath.val("m/44'/1'/0'/0");
}
else if (n == "litecoin") {
network = Bitcoin.networks.litecoin;

View File

@@ -40,6 +40,7 @@
DOM.indexToggle = $(".index-toggle");
DOM.addressToggle = $(".address-toggle");
DOM.privateKeyToggle = $(".private-key-toggle");
DOM.myceliumPath = $("#mycelium-path");
var derivationPath = $(".tab-pane.active .path").val();
@@ -71,10 +72,12 @@
if (n == "bitcoin") {
network = Bitcoin.networks.bitcoin;
DOM.bip44coin.val(0);
DOM.myceliumPath.val("m/44'/0'/0'/0");
}
else if (n == "bitcoin-testnet") {
network = Bitcoin.networks.testnet;
DOM.bip44coin.val(1);
DOM.myceliumPath.val("m/44'/1'/0'/0");
}
else if (n == "litecoin") {
network = Bitcoin.networks.litecoin;