Merge branch 'master' into ella-support

This commit is contained in:
iancoleman
2019-04-30 11:07:12 +10:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -920,6 +920,7 @@
|| (networks[DOM.network.val()].name == "CLO - Callisto") || (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") || (networks[DOM.network.val()].name == "ELLA - Ellaism")
|| (networks[DOM.network.val()].name == "ESN - Ethersocial Network")
) { ) {
var privKeyBuffer = keyPair.d.toBuffer(32); var privKeyBuffer = keyPair.d.toBuffer(32);
privkey = privKeyBuffer.toString('hex'); privkey = privKeyBuffer.toString('hex');
@@ -2001,6 +2002,14 @@
setHdCoin(151); setHdCoin(151);
}, },
}, },
{
name: "ESN - Ethersocial Network",
segwitAvailable: false,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.bitcoin;
setHdCoin(31102);
},
},
{ {
name: "ETC - Ethereum Classic", name: "ETC - Ethereum Classic",
segwitAvailable: false, segwitAvailable: false,

View File

@@ -1441,6 +1441,13 @@ it('Allows selection of Ellaism', function(done) {
}; };
testNetwork(done, params); testNetwork(done, params);
}); });
it('Allows selection of Ethersocial Network', function(done) {
var params = {
selectText: "ESN - Ethersocial Network",
firstAddress: "0x6EE99Be2A0C7F887a71e21C8608ACF0aa0D2b767",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase // BIP39 seed is set from phrase
it('Sets the bip39 seed from the prhase', function(done) { it('Sets the bip39 seed from the prhase', function(done) {