From 8131a0711504451fa46551e0074f519215d68310 Mon Sep 17 00:00:00 2001 From: EtherCore Contributor Date: Thu, 2 Jan 2020 00:45:48 +0900 Subject: [PATCH 1/2] Add EtherCore --- src/js/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/js/index.js b/src/js/index.js index 92772f6..62bab81 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1838,6 +1838,7 @@ || (name == "ELLA - Ellaism") || (name == "ESN - Ethersocial Network") || (name == "VET - VeChain") + || (name == "ERE - EtherCore") } function networkHasSegwit() { @@ -2417,6 +2418,14 @@ setHdCoin(194); }, }, + { + name: "ERE - EtherCore", + segwitAvailable: false, + onSelect: function() { + network = libs.bitcoin.networks.bitcoin; + setHdCoin(466); + }, + }, { name: "ESN - Ethersocial Network", segwitAvailable: false, From 9e04576e2f78cd76cf0a3300e3ff14726b19fcf4 Mon Sep 17 00:00:00 2001 From: EtherCore Contributor Date: Thu, 2 Jan 2020 00:53:17 +0900 Subject: [PATCH 2/2] add testcase for ethercore --- tests/spec/tests.js | 7 +++++++ 1 file changed, 7 insertions(+) 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) { }; testNetwork(done, params); }); +it('Allows selection of EtherCore', function(done) { + var params = { + selectText: "ERE - EtherCore", + firstAddress: "0xDeeAD0297F06dfe6c7Ad0C1D0CF5B06D6047bEEe", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase it('Sets the bip39 seed from the prhase', function(done) {