diff --git a/lib/abi.js b/lib/abi.js index 91c087346..580144099 100644 --- a/lib/abi.js +++ b/lib/abi.js @@ -11,9 +11,10 @@ var ABIGenerator = function(options) { ABIGenerator.prototype.generateProvider = function() { var self = this; var result = ""; + var providerPlugins; if (this.plugins) { - var providerPlugins = this.plugins.getPluginsFor('clientWeb3Provider'); + providerPlugins = this.plugins.getPluginsFor('clientWeb3Provider'); } if (this.plugins && providerPlugins.length > 0) { @@ -35,9 +36,10 @@ ABIGenerator.prototype.generateProvider = function() { ABIGenerator.prototype.generateContracts = function(useEmbarkJS) { var self = this; var result = "\n"; + var contractsPlugins; if (this.plugins) { - var contractsPlugins = this.plugins.getPluginsFor('contractGeneration'); + contractsPlugins = this.plugins.getPluginsFor('contractGeneration'); } if (this.plugins && contractsPlugins.length > 0) { diff --git a/lib/deploy.js b/lib/deploy.js index a8b86b61e..089d1c411 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -1,5 +1,4 @@ var async = require('async'); -var Compiler = require('./compiler.js'); var DeployTracker = require('./deploy_tracker.js'); var ABIGenerator = require('./abi.js'); var web3; diff --git a/lib/index.js b/lib/index.js index 86229ca7d..a07364b4a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,12 +1,7 @@ /*jshint esversion: 6 */ var async = require('async'); var Web3 = require('web3'); -var fs = require('fs'); -var grunt = require('grunt'); -var mkdirp = require('mkdirp'); var colors = require('colors'); -var chokidar = require('chokidar'); -var path = require('path'); var Cmd = require('./cmd.js'); var Deploy = require('./deploy.js');