From 2885ddd5f7d6dbe6211fd699e58ce0da6ac6295c Mon Sep 17 00:00:00 2001 From: hackyminer Date: Fri, 26 Apr 2019 01:33:59 +0900 Subject: add Ellaism(ELLA) suppport --- src/js/index.js | 12 +++++++++++- tests/spec/tests.js | 7 +++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/js/index.js b/src/js/index.js index 8262947..6428aa7 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -918,7 +918,9 @@ || (networks[DOM.network.val()].name == "POA - Poa") || (networks[DOM.network.val()].name == "EXP - Expanse") || (networks[DOM.network.val()].name == "CLO - Callisto") - || (networks[DOM.network.val()].name == "DXN - DEXON")) { + || (networks[DOM.network.val()].name == "DXN - DEXON") + || (networks[DOM.network.val()].name == "ELLA - Ellaism") + ) { var privKeyBuffer = keyPair.d.toBuffer(32); privkey = privKeyBuffer.toString('hex'); var addressBuffer = ethUtil.privateToAddress(privKeyBuffer); @@ -1977,6 +1979,14 @@ setHdCoin(78); }, }, + { + name: "ELLA - Ellaism", + segwitAvailable: false, + onSelect: function() { + network = bitcoinjs.bitcoin.networks.bitcoin; + setHdCoin(163); + }, + }, { name: "EMC2 - Einsteinium", onSelect: function() { diff --git a/tests/spec/tests.js b/tests/spec/tests.js index a22d749..6c98091 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -1434,6 +1434,13 @@ it('Allows selection of DEXON', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Ellaism', function(done) { + var params = { + selectText: "ELLA - Ellaism", + firstAddress: "0xa8B0BeA09eeBc41062308546a01d6E544277e2Ca", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase it('Sets the bip39 seed from the prhase', function(done) { -- cgit v1.2.3