mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-03-10 11:39:05 +01:00
set appropriate hrp for Litecoin SegWit addresses
set chain.so/address/LTC for view of address (previously was referencing BTC block explorer)
This commit is contained in:
parent
10aa011c6e
commit
e6c70d133b
@ -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("<span class=\"glyphicon glyphicon-ok\"></span> Settings updates successfully").fadeOut().fadeIn();
|
||||
} else {
|
||||
$("#statusSettings").addClass("alert-danger").removeClass("hidden").html("There is an error with one or more of your settings");
|
||||
|
Loading…
x
Reference in New Issue
Block a user