This commit is contained in:
Iuri Matias 2017-10-14 06:12:54 -04:00
parent 704a1ff517
commit c5a7db2da0
4 changed files with 4 additions and 12 deletions

View File

@ -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;

View File

@ -162,7 +162,7 @@ class ContractsManager {
}
callback();
}
], function (err, result) {
], function (err, _result) {
if (err) {
self.logger.error("Error Compiling/Building contracts: " + err);
}

View File

@ -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);

View File

@ -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"));
}