diff options
Diffstat (limited to 'src/js/index.js')
-rw-r--r-- | src/js/index.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js index 057d709..8262947 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -977,6 +977,11 @@ | |||
977 | address = bitcoinjs.bitcoin.address.fromOutputScript(scriptpubkey, network) | 977 | address = bitcoinjs.bitcoin.address.fromOutputScript(scriptpubkey, network) |
978 | } | 978 | } |
979 | } | 979 | } |
980 | |||
981 | if ((networks[DOM.network.val()].name == "CRW - Crown")) { | ||
982 | address = bitcoinjs.bitcoin.networks.crown.toNewAddress(address); | ||
983 | } | ||
984 | |||
980 | addAddressToList(indexText, address, pubkey, privkey); | 985 | addAddressToList(indexText, address, pubkey, privkey); |
981 | if (isLast) { | 986 | if (isLast) { |
982 | hidePending(); | 987 | hidePending(); |
@@ -1875,6 +1880,13 @@ | |||
1875 | }, | 1880 | }, |
1876 | }, | 1881 | }, |
1877 | { | 1882 | { |
1883 | name: "CRW - Crown (Legacy)", | ||
1884 | onSelect: function() { | ||
1885 | network = bitcoinjs.bitcoin.networks.crown; | ||
1886 | setHdCoin(72); | ||
1887 | }, | ||
1888 | }, | ||
1889 | { | ||
1878 | name: "CRW - Crown", | 1890 | name: "CRW - Crown", |
1879 | onSelect: function() { | 1891 | onSelect: function() { |
1880 | network = bitcoinjs.bitcoin.networks.crown; | 1892 | network = bitcoinjs.bitcoin.networks.crown; |