aboutsummaryrefslogtreecommitdiff
path: root/src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/index.js')
-rw-r--r--src/js/index.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 8c23e61..057d709 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -952,6 +952,13 @@
952 address = bchaddr.toBitpayAddress(address); 952 address = bchaddr.toBitpayAddress(address);
953 } 953 }
954 } 954 }
955 // Bitcoin Cash address format may vary
956 if (networks[DOM.network.val()].name == "SLP - Simple Ledger Protocol") {
957 var bchAddrType = DOM.bitcoinCashAddressType.filter(":checked").val();
958 if (bchAddrType == "cashaddr") {
959 address = bchaddr.toSlpAddress(address);
960 }
961 }
955 // Segwit addresses are different 962 // Segwit addresses are different
956 if (isSegwit) { 963 if (isSegwit) {
957 if (!segwitAvailable) { 964 if (!segwitAvailable) {
@@ -1718,7 +1725,7 @@
1718 network = bitcoinjs.bitcoin.networks.blocknode; 1725 network = bitcoinjs.bitcoin.networks.blocknode;
1719 setHdCoin(2941); 1726 setHdCoin(2941);
1720 }, 1727 },
1721 }, 1728 },
1722 { 1729 {
1723 name: "tBND - Blocknode Testnet", 1730 name: "tBND - Blocknode Testnet",
1724 onSelect: function() { 1731 onSelect: function() {
@@ -2487,6 +2494,13 @@
2487 }, 2494 },
2488 }, 2495 },
2489 { 2496 {
2497 name: "SLP - Simple Ledger Protocol",
2498 onSelect: function() {
2499 DOM.bitcoinCashAddressTypeContainer.removeClass("hidden");
2500 setHdCoin(245);
2501 },
2502 },
2503 {
2490 name: "SLR - Solarcoin", 2504 name: "SLR - Solarcoin",
2491 onSelect: function() { 2505 onSelect: function() {
2492 network = bitcoinjs.bitcoin.networks.solarcoin; 2506 network = bitcoinjs.bitcoin.networks.solarcoin;