aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/index.js9
-rw-r--r--tests/spec/tests.js7
2 files changed, 16 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 6428aa7..8dd553d 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -920,6 +920,7 @@
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") 922 || (networks[DOM.network.val()].name == "ELLA - Ellaism")
923 || (networks[DOM.network.val()].name == "ESN - Ethersocial Network")
923 ) { 924 ) {
924 var privKeyBuffer = keyPair.d.toBuffer(32); 925 var privKeyBuffer = keyPair.d.toBuffer(32);
925 privkey = privKeyBuffer.toString('hex'); 926 privkey = privKeyBuffer.toString('hex');
@@ -2002,6 +2003,14 @@
2002 }, 2003 },
2003 }, 2004 },
2004 { 2005 {
2006 name: "ESN - Ethersocial Network",
2007 segwitAvailable: false,
2008 onSelect: function() {
2009 network = bitcoinjs.bitcoin.networks.bitcoin;
2010 setHdCoin(31102);
2011 },
2012 },
2013 {
2005 name: "ETC - Ethereum Classic", 2014 name: "ETC - Ethereum Classic",
2006 segwitAvailable: false, 2015 segwitAvailable: false,
2007 onSelect: function() { 2016 onSelect: function() {
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 6c98091..88c91a3 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1441,6 +1441,13 @@ it('Allows selection of Ellaism', function(done) {
1441 }; 1441 };
1442 testNetwork(done, params); 1442 testNetwork(done, params);
1443}); 1443});
1444it('Allows selection of Ethersocial Network', function(done) {
1445 var params = {
1446 selectText: "ESN - Ethersocial Network",
1447 firstAddress: "0x6EE99Be2A0C7F887a71e21C8608ACF0aa0D2b767",
1448 };
1449 testNetwork(done, params);
1450});
1444 1451
1445// BIP39 seed is set from phrase 1452// BIP39 seed is set from phrase
1446it('Sets the bip39 seed from the prhase', function(done) { 1453it('Sets the bip39 seed from the prhase', function(done) {