remove unneded passing of contracts manager

This commit is contained in:
Iuri Matias 2018-05-31 10:09:26 -04:00
parent 20d7496980
commit 9929415da8
1 changed files with 3 additions and 4 deletions

View File

@ -180,12 +180,12 @@ class Engine {
self.events.emit('code-generator-ready'); self.events.emit('code-generator-ready');
}); });
}; };
const cargo = async.cargo((tasks, callback) => { const cargo = async.cargo((_tasks, callback) => {
generateCode(tasks[tasks.length - 1].contractsManager); generateCode();
self.events.once('outputDone', callback); self.events.once('outputDone', callback);
}); });
const addToCargo = function () { const addToCargo = function () {
cargo.push({contractsManager: self.contractsManager}); cargo.push({});
}; };
this.events.on('contractsDeployed', addToCargo); this.events.on('contractsDeployed', addToCargo);
@ -230,7 +230,6 @@ class Engine {
logger: this.logger, logger: this.logger,
events: this.events, events: this.events,
plugins: this.plugins plugins: this.plugins
//gasLimit: options.gasLimit
}); });
this.events.on('file-event', function (fileType) { this.events.on('file-event', function (fileType) {