Merge pull request #340 from sile16/master

Added support for VeChain, hdcoin 818, same address formats as ETH
This commit is contained in:
iancoleman
2019-07-16 10:51:48 +10:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -921,6 +921,7 @@
|| (networks[DOM.network.val()].name == "DXN - DEXON")
|| (networks[DOM.network.val()].name == "ELLA - Ellaism")
|| (networks[DOM.network.val()].name == "ESN - Ethersocial Network")
|| (networks[DOM.network.val()].name == "VET - VeChain")
) {
var privKeyBuffer = keyPair.d.toBuffer(32);
privkey = privKeyBuffer.toString('hex');
@@ -2705,6 +2706,13 @@
setHdCoin(33);
},
},
{
name: "VET - VeChain",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.bitcoin;
setHdCoin(818);
},
},
{
name: "VIA - Viacoin",
onSelect: function() {

View File

@@ -1319,6 +1319,13 @@ it('Allows selection of Vpncoin', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of VeChain', function(done) {
var params = {
selectText: "VET - VeChain",
firstAddress: "0xdba55B1B6070f3a733D5eDFf35F0da4A00E455F2",
};
testNetwork(done, params);
});
it('Allows selection of Whitecoin', function(done) {
var params = {
selectText: "XWC - Whitecoin",