Skip to content

Commit c5a7db2

Browse files
committed
cleanup
1 parent 704a1ff commit c5a7db2

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

lib/contracts/code_generator.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ejs = require('ejs');
1+
require('ejs');
22
const Templates = {
33
utils: require('./code_templates/utils.js.ejs'),
44
vanilla_contract: require('./code_templates/vanilla-contract.js.ejs'),
@@ -206,9 +206,6 @@ class CodeGenerator {
206206
let contract = this.contractsManager.contracts[className];
207207
let contractJSON = {};
208208

209-
let abi = JSON.stringify(contract.abiDefinition);
210-
let gasEstimates = JSON.stringify(contract.gasEstimates);
211-
212209
contractJSON.contract_name = className;
213210
contractJSON.address = contract.deployedAddress;
214211
contractJSON.code = contract.code;

lib/contracts/contracts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class ContractsManager {
162162
}
163163
callback();
164164
}
165-
], function (err, result) {
165+
], function (err, _result) {
166166
if (err) {
167167
self.logger.error("Error Compiling/Building contracts: " + err);
168168
}

lib/contracts/deploy.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,7 @@ class Deploy {
3636

3737
checkAndDeployContract(contract, params, callback) {
3838
let self = this;
39-
let suppliedArgs;
4039
let realArgs;
41-
let arg;
42-
let l;
43-
let contractName;
44-
let referedContract;
4540
contract.error = false;
4641

4742
if (contract.deploy === false) {
@@ -164,7 +159,7 @@ class Deploy {
164159
self.logger.trace(arguments);
165160
self.checkAndDeployContract(contract, null, callback);
166161
},
167-
function (err, results) {
162+
function (err, _results) {
168163
if (err) {
169164
self.logger.error("error deploying contracts");
170165
self.logger.error(err.message);

lib/contracts/deploy_manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class DeployManager {
4242
return callback(Error("error connecting to blockchain node"));
4343
}
4444
if (self.web3.currentProvider.isConnected === undefined) {
45-
self.web3.version.getNode(function (err, version) {
45+
self.web3.version.getNode(function (err, _version) {
4646
if (err) {
4747
return callback(Error("error connecting to blockchain node"));
4848
}

0 commit comments

Comments
 (0)