aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/index.js21
-rw-r--r--tests/spec/tests.js14
2 files changed, 34 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js
index e0d0b44..6085f1b 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -918,7 +918,10 @@
918 || (networks[DOM.network.val()].name == "POA - Poa") 918 || (networks[DOM.network.val()].name == "POA - Poa")
919 || (networks[DOM.network.val()].name == "EXP - Expanse") 919 || (networks[DOM.network.val()].name == "EXP - Expanse")
920 || (networks[DOM.network.val()].name == "CLO - Callisto") 920 || (networks[DOM.network.val()].name == "CLO - Callisto")
921 || (networks[DOM.network.val()].name == "DXN - DEXON")) { 921 || (networks[DOM.network.val()].name == "DXN - DEXON")
922 || (networks[DOM.network.val()].name == "ELLA - Ellaism")
923 || (networks[DOM.network.val()].name == "ESN - Ethersocial Network")
924 ) {
922 var privKeyBuffer = keyPair.d.toBuffer(32); 925 var privKeyBuffer = keyPair.d.toBuffer(32);
923 privkey = privKeyBuffer.toString('hex'); 926 privkey = privKeyBuffer.toString('hex');
924 var addressBuffer = ethUtil.privateToAddress(privKeyBuffer); 927 var addressBuffer = ethUtil.privateToAddress(privKeyBuffer);
@@ -1985,6 +1988,14 @@
1985 }, 1988 },
1986 }, 1989 },
1987 { 1990 {
1991 name: "ELLA - Ellaism",
1992 segwitAvailable: false,
1993 onSelect: function() {
1994 network = bitcoinjs.bitcoin.networks.bitcoin;
1995 setHdCoin(163);
1996 },
1997 },
1998 {
1988 name: "EMC2 - Einsteinium", 1999 name: "EMC2 - Einsteinium",
1989 onSelect: function() { 2000 onSelect: function() {
1990 network = bitcoinjs.bitcoin.networks.einsteinium; 2001 network = bitcoinjs.bitcoin.networks.einsteinium;
@@ -1999,6 +2010,14 @@
1999 }, 2010 },
2000 }, 2011 },
2001 { 2012 {
2013 name: "ESN - Ethersocial Network",
2014 segwitAvailable: false,
2015 onSelect: function() {
2016 network = bitcoinjs.bitcoin.networks.bitcoin;
2017 setHdCoin(31102);
2018 },
2019 },
2020 {
2002 name: "ETC - Ethereum Classic", 2021 name: "ETC - Ethereum Classic",
2003 segwitAvailable: false, 2022 segwitAvailable: false,
2004 onSelect: function() { 2023 onSelect: function() {
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 1449c00..f24b4ac 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1441,6 +1441,20 @@ it('Allows selection of DEXON', function(done) {
1441 }; 1441 };
1442 testNetwork(done, params); 1442 testNetwork(done, params);
1443}); 1443});
1444it('Allows selection of Ellaism', function(done) {
1445 var params = {
1446 selectText: "ELLA - Ellaism",
1447 firstAddress: "0xa8B0BeA09eeBc41062308546a01d6E544277e2Ca",
1448 };
1449 testNetwork(done, params);
1450});
1451it('Allows selection of Ethersocial Network', function(done) {
1452 var params = {
1453 selectText: "ESN - Ethersocial Network",
1454 firstAddress: "0x6EE99Be2A0C7F887a71e21C8608ACF0aa0D2b767",
1455 };
1456 testNetwork(done, params);
1457});
1444 1458
1445// BIP39 seed is set from phrase 1459// BIP39 seed is set from phrase
1446it('Sets the bip39 seed from the prhase', function(done) { 1460it('Sets the bip39 seed from the prhase', function(done) {