diff --git a/lib/contracts/code_generator.js b/lib/contracts/code_generator.js index 584d97d36..b57dced3f 100644 --- a/lib/contracts/code_generator.js +++ b/lib/contracts/code_generator.js @@ -1,4 +1,4 @@ -const ejs = require('ejs'); +require('ejs'); const Templates = { utils: require('./code_templates/utils.js.ejs'), vanilla_contract: require('./code_templates/vanilla-contract.js.ejs'), @@ -206,9 +206,6 @@ class CodeGenerator { let contract = this.contractsManager.contracts[className]; let contractJSON = {}; - let abi = JSON.stringify(contract.abiDefinition); - let gasEstimates = JSON.stringify(contract.gasEstimates); - contractJSON.contract_name = className; contractJSON.address = contract.deployedAddress; contractJSON.code = contract.code; diff --git a/lib/contracts/contracts.js b/lib/contracts/contracts.js index 2c73c6936..2dcb677af 100644 --- a/lib/contracts/contracts.js +++ b/lib/contracts/contracts.js @@ -162,7 +162,7 @@ class ContractsManager { } callback(); } - ], function (err, result) { + ], function (err, _result) { if (err) { self.logger.error("Error Compiling/Building contracts: " + err); } diff --git a/lib/contracts/deploy.js b/lib/contracts/deploy.js index 6ee6bacbb..c9ea7ada0 100644 --- a/lib/contracts/deploy.js +++ b/lib/contracts/deploy.js @@ -36,12 +36,7 @@ class Deploy { checkAndDeployContract(contract, params, callback) { let self = this; - let suppliedArgs; let realArgs; - let arg; - let l; - let contractName; - let referedContract; contract.error = false; if (contract.deploy === false) { @@ -164,7 +159,7 @@ class Deploy { self.logger.trace(arguments); self.checkAndDeployContract(contract, null, callback); }, - function (err, results) { + function (err, _results) { if (err) { self.logger.error("error deploying contracts"); self.logger.error(err.message); diff --git a/lib/contracts/deploy_manager.js b/lib/contracts/deploy_manager.js index 3b3ec750e..975abae0c 100644 --- a/lib/contracts/deploy_manager.js +++ b/lib/contracts/deploy_manager.js @@ -42,7 +42,7 @@ class DeployManager { return callback(Error("error connecting to blockchain node")); } if (self.web3.currentProvider.isConnected === undefined) { - self.web3.version.getNode(function (err, version) { + self.web3.version.getNode(function (err, _version) { if (err) { return callback(Error("error connecting to blockchain node")); }