From 4b1a16b100494e38c3a85108f70af9cd4acba522 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 22 Oct 2016 17:29:06 -0400 Subject: [PATCH] add jshint exceptions and TODO --- lib/deploy.js | 6 +++--- lib/test.js | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/deploy.js b/lib/deploy.js index d51e3117..8c73e565 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -83,17 +83,17 @@ Deploy.prototype.checkAndDeployContract = function(contract, params, callback) { self.deployTracker.save(); self.logger.contractsState(self.contractsManager.contractsState()); - // TODO: replace with separate process so it's isolated and with + // TODO: replace evals with separate process so it's isolated and with // a callback if (contract.onDeploy !== undefined) { self.logger.info('executing onDeploy commands'); var abiGenerator = new ABIGenerator({}, self.contractsManager); web3 = self.web3; var abi = abiGenerator.generateContracts(false); - eval(abi); + eval(abi); // jshint ignore:line var cmds = contract.onDeploy.join(';\n'); - eval(cmds); + eval(cmds); // jshint ignore:line } callback(); diff --git a/lib/test.js b/lib/test.js index 49396ded..9667ae07 100644 --- a/lib/test.js +++ b/lib/test.js @@ -62,7 +62,9 @@ Test.prototype.deployAll = function(contractsConfig, cb) { self.web3.eth.getAccounts(function(err, accounts) { var web3 = self.web3; web3.eth.defaultAccount = accounts[0]; - eval(result); + // TODO: replace evals with separate process so it's isolated and with + // a callback + eval(result); // jshint ignore:line cb(); }); });