aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/index.js8
-rw-r--r--tests/spec/tests.js7
2 files changed, 15 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 9578146..52b0db5 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -921,6 +921,7 @@
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 == "ELLA - Ellaism")
923 || (networks[DOM.network.val()].name == "ESN - Ethersocial Network") 923 || (networks[DOM.network.val()].name == "ESN - Ethersocial Network")
924 || (networks[DOM.network.val()].name == "VET - VeChain")
924 ) { 925 ) {
925 var privKeyBuffer = keyPair.d.toBuffer(32); 926 var privKeyBuffer = keyPair.d.toBuffer(32);
926 privkey = privKeyBuffer.toString('hex'); 927 privkey = privKeyBuffer.toString('hex');
@@ -2706,6 +2707,13 @@
2706 }, 2707 },
2707 }, 2708 },
2708 { 2709 {
2710 name: "VET - VeChain",
2711 onSelect: function() {
2712 network = bitcoinjs.bitcoin.networks.bitcoin;
2713 setHdCoin(818);
2714 },
2715 },
2716 {
2709 name: "VIA - Viacoin", 2717 name: "VIA - Viacoin",
2710 onSelect: function() { 2718 onSelect: function() {
2711 network = bitcoinjs.bitcoin.networks.viacoin; 2719 network = bitcoinjs.bitcoin.networks.viacoin;
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index f69bca6..dd90a66 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1319,6 +1319,13 @@ it('Allows selection of Vpncoin', function(done) {
1319 }; 1319 };
1320 testNetwork(done, params); 1320 testNetwork(done, params);
1321}); 1321});
1322it('Allows selection of VeChain', function(done) {
1323 var params = {
1324 selectText: "VET - VeChain",
1325 firstAddress: "0xdba55B1B6070f3a733D5eDFf35F0da4A00E455F2",
1326 };
1327 testNetwork(done, params);
1328});
1322it('Allows selection of Whitecoin', function(done) { 1329it('Allows selection of Whitecoin', function(done) {
1323 var params = { 1330 var params = {
1324 selectText: "XWC - Whitecoin", 1331 selectText: "XWC - Whitecoin",