mirror of https://github.com/embarklabs/embark.git
cleanup
This commit is contained in:
parent
704a1ff517
commit
c5a7db2da0
|
@ -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;
|
||||
|
|
|
@ -162,7 +162,7 @@ class ContractsManager {
|
|||
}
|
||||
callback();
|
||||
}
|
||||
], function (err, result) {
|
||||
], function (err, _result) {
|
||||
if (err) {
|
||||
self.logger.error("Error Compiling/Building contracts: " + err);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue