From e6c70d133b07d315419b6a66fadbd3be4cfd73fc Mon Sep 17 00:00:00 2001 From: Wowee0 Date: Mon, 22 Apr 2019 22:09:20 -0500 Subject: [PATCH] set appropriate hrp for Litecoin SegWit addresses set chain.so/address/LTC for view of address (previously was referencing BTC block explorer) --- js/coinbin.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/coinbin.js b/js/coinbin.js index f9c67a6..299e139 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1806,6 +1806,14 @@ $(document).ready(function() { configureBroadcast(); configureGetUnspentTx(); + if (coinjs.pub == 0x30){ // LTC + explorer_addr = "https://chain.so/address/LTC/"; + coinjs.bech32.hrp = "ltc"; + } + else if (coinjs.pub == 0x1e){ // DOGE + explorer_addr = "https://chain.so/address/DOGE/"; + } + $("#statusSettings").addClass("alert-success").removeClass("hidden").html(" Settings updates successfully").fadeOut().fadeIn(); } else { $("#statusSettings").addClass("alert-danger").removeClass("hidden").html("There is an error with one or more of your settings");