diff options
author | iancoleman <1281387+iancoleman@users.noreply.github.com> | 2019-04-30 11:07:23 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 11:07:23 +1000 |
commit | c69e40942e3e0f7cfd076ea03daf256b77d1f951 (patch) | |
tree | 5881082a1fe9f35b5829306fb0853548232d5650 | |
parent | 81a5a871d9dffd191c6f25aa9e7303f4b390819c (diff) | |
parent | 8cb07685fd1faf519cb1b02024b7320d0c19ce4b (diff) | |
download | BIP39-c69e40942e3e0f7cfd076ea03daf256b77d1f951.tar.gz BIP39-c69e40942e3e0f7cfd076ea03daf256b77d1f951.tar.zst BIP39-c69e40942e3e0f7cfd076ea03daf256b77d1f951.zip |
Merge pull request #323 from ellaism/ella-support
add Ellaism(ELLA) suppport
-rw-r--r-- | src/js/index.js | 9 | ||||
-rw-r--r-- | tests/spec/tests.js | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js index 67dde1c..8dd553d 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -919,6 +919,7 @@ | |||
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") | ||
922 | || (networks[DOM.network.val()].name == "ESN - Ethersocial Network") | 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); |
@@ -1980,6 +1981,14 @@ | |||
1980 | }, | 1981 | }, |
1981 | }, | 1982 | }, |
1982 | { | 1983 | { |
1984 | name: "ELLA - Ellaism", | ||
1985 | segwitAvailable: false, | ||
1986 | onSelect: function() { | ||
1987 | network = bitcoinjs.bitcoin.networks.bitcoin; | ||
1988 | setHdCoin(163); | ||
1989 | }, | ||
1990 | }, | ||
1991 | { | ||
1983 | name: "EMC2 - Einsteinium", | 1992 | name: "EMC2 - Einsteinium", |
1984 | onSelect: function() { | 1993 | onSelect: function() { |
1985 | network = bitcoinjs.bitcoin.networks.einsteinium; | 1994 | network = bitcoinjs.bitcoin.networks.einsteinium; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 83fc949..88c91a3 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 Ellaism', function(done) { | ||
1438 | var params = { | ||
1439 | selectText: "ELLA - Ellaism", | ||
1440 | firstAddress: "0xa8B0BeA09eeBc41062308546a01d6E544277e2Ca", | ||
1441 | }; | ||
1442 | testNetwork(done, params); | ||
1443 | }); | ||
1437 | it('Allows selection of Ethersocial Network', function(done) { | 1444 | it('Allows selection of Ethersocial Network', function(done) { |
1438 | var params = { | 1445 | var params = { |
1439 | selectText: "ESN - Ethersocial Network", | 1446 | selectText: "ESN - Ethersocial Network", |