diff options
-rw-r--r-- | src/js/index.js | 12 | ||||
-rw-r--r-- | tests/spec/tests.js | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js index 8262947..67dde1c 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -918,7 +918,9 @@ | |||
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 == "ESN - Ethersocial Network") | ||
923 | ) { | ||
922 | var privKeyBuffer = keyPair.d.toBuffer(32); | 924 | var privKeyBuffer = keyPair.d.toBuffer(32); |
923 | privkey = privKeyBuffer.toString('hex'); | 925 | privkey = privKeyBuffer.toString('hex'); |
924 | var addressBuffer = ethUtil.privateToAddress(privKeyBuffer); | 926 | var addressBuffer = ethUtil.privateToAddress(privKeyBuffer); |
@@ -1992,6 +1994,14 @@ | |||
1992 | }, | 1994 | }, |
1993 | }, | 1995 | }, |
1994 | { | 1996 | { |
1997 | name: "ESN - Ethersocial Network", | ||
1998 | segwitAvailable: false, | ||
1999 | onSelect: function() { | ||
2000 | network = bitcoinjs.bitcoin.networks.bitcoin; | ||
2001 | setHdCoin(31102); | ||
2002 | }, | ||
2003 | }, | ||
2004 | { | ||
1995 | name: "ETC - Ethereum Classic", | 2005 | name: "ETC - Ethereum Classic", |
1996 | segwitAvailable: false, | 2006 | segwitAvailable: false, |
1997 | onSelect: function() { | 2007 | onSelect: function() { |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index a22d749..83fc949 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -1434,6 +1434,13 @@ it('Allows selection of DEXON', function(done) { | |||
1434 | }; | 1434 | }; |
1435 | testNetwork(done, params); | 1435 | testNetwork(done, params); |
1436 | }); | 1436 | }); |
1437 | it('Allows selection of Ethersocial Network', function(done) { | ||
1438 | var params = { | ||
1439 | selectText: "ESN - Ethersocial Network", | ||
1440 | firstAddress: "0x6EE99Be2A0C7F887a71e21C8608ACF0aa0D2b767", | ||
1441 | }; | ||
1442 | testNetwork(done, params); | ||
1443 | }); | ||
1437 | 1444 | ||
1438 | // BIP39 seed is set from phrase | 1445 | // BIP39 seed is set from phrase |
1439 | it('Sets the bip39 seed from the prhase', function(done) { | 1446 | it('Sets the bip39 seed from the prhase', function(done) { |