address = bchaddr.toBitpayAddress(address);
}
}
+ // Bitcoin Cash address format may vary
+ if (networks[DOM.network.val()].name == "SLP - Simple Ledger Protocol") {
+ var bchAddrType = DOM.bitcoinCashAddressType.filter(":checked").val();
+ if (bchAddrType == "cashaddr") {
+ address = bchaddr.toSlpAddress(address);
+ }
+ }
// Segwit addresses are different
if (isSegwit) {
if (!segwitAvailable) {
network = bitcoinjs.bitcoin.networks.blocknode;
setHdCoin(2941);
},
- },
+ },
{
name: "tBND - Blocknode Testnet",
onSelect: function() {
setHdCoin(111);
},
},
+ {
+ name: "SLP - Simple Ledger Protocol",
+ onSelect: function() {
+ DOM.bitcoinCashAddressTypeContainer.removeClass("hidden");
+ setHdCoin(245);
+ },
+ },
{
name: "SLR - Solarcoin",
onSelect: function() {