diff options
-rw-r--r-- | src/js/index.js | 23 | ||||
-rw-r--r-- | tests/spec/tests.js | 7 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js index 92772f6..102c7c5 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1838,6 +1838,7 @@ | |||
1838 | || (name == "ELLA - Ellaism") | 1838 | || (name == "ELLA - Ellaism") |
1839 | || (name == "ESN - Ethersocial Network") | 1839 | || (name == "ESN - Ethersocial Network") |
1840 | || (name == "VET - VeChain") | 1840 | || (name == "VET - VeChain") |
1841 | || (name == "ERE - EtherCore") | ||
1841 | } | 1842 | } |
1842 | 1843 | ||
1843 | function networkHasSegwit() { | 1844 | function networkHasSegwit() { |
@@ -2418,6 +2419,14 @@ | |||
2418 | }, | 2419 | }, |
2419 | }, | 2420 | }, |
2420 | { | 2421 | { |
2422 | name: "ERE - EtherCore", | ||
2423 | segwitAvailable: false, | ||
2424 | onSelect: function() { | ||
2425 | network = libs.bitcoin.networks.bitcoin; | ||
2426 | setHdCoin(466); | ||
2427 | }, | ||
2428 | }, | ||
2429 | { | ||
2421 | name: "ESN - Ethersocial Network", | 2430 | name: "ESN - Ethersocial Network", |
2422 | segwitAvailable: false, | 2431 | segwitAvailable: false, |
2423 | onSelect: function() { | 2432 | onSelect: function() { |
@@ -2948,6 +2957,20 @@ | |||
2948 | }, | 2957 | }, |
2949 | }, | 2958 | }, |
2950 | { | 2959 | { |
2960 | name: "RBTC - RSK", | ||
2961 | onSelect: function() { | ||
2962 | network = libs.bitcoin.networks.rubycoin; | ||
2963 | setHdCoin(137); | ||
2964 | }, | ||
2965 | }, | ||
2966 | { | ||
2967 | name: "tRBTC - RSK Testnet", | ||
2968 | onSelect: function() { | ||
2969 | network = libs.bitcoin.networks.rubycoin; | ||
2970 | setHdCoin(37310); | ||
2971 | }, | ||
2972 | }, | ||
2973 | { | ||
2951 | name: "RBY - Rubycoin", | 2974 | name: "RBY - Rubycoin", |
2952 | onSelect: function() { | 2975 | onSelect: function() { |
2953 | network = libs.bitcoin.networks.rubycoin; | 2976 | network = libs.bitcoin.networks.rubycoin; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 0e85ecc..62647d2 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -1635,6 +1635,13 @@ it('Allows selection of Thought', function(done) { | |||
1635 | }; | 1635 | }; |
1636 | testNetwork(done, params); | 1636 | testNetwork(done, params); |
1637 | }); | 1637 | }); |
1638 | it('Allows selection of EtherCore', function(done) { | ||
1639 | var params = { | ||
1640 | selectText: "ERE - EtherCore", | ||
1641 | firstAddress: "0xDeeAD0297F06dfe6c7Ad0C1D0CF5B06D6047bEEe", | ||
1642 | }; | ||
1643 | testNetwork(done, params); | ||
1644 | }); | ||
1638 | 1645 | ||
1639 | // BIP39 seed is set from phrase | 1646 | // BIP39 seed is set from phrase |
1640 | it('Sets the bip39 seed from the prhase', function(done) { | 1647 | it('Sets the bip39 seed from the prhase', function(done) { |