From: iancoleman <1281387+iancoleman@users.noreply.github.com> Date: Thu, 6 Feb 2020 03:59:34 +0000 (+1100) Subject: Merge pull request #396 from ilanolkies/patch-2 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=commitdiff_plain;h=54a8e781b476b6be3d404f9e8a4897a5a661ea6d;hp=e9491c7efd88b23fc505f546845f52bfbb7fd864 Merge pull request #396 from ilanolkies/patch-2 Add network --- diff --git a/src/js/index.js b/src/js/index.js index fc467fe..102c7c5 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, 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) {