mirror of https://github.com/embarklabs/embark.git
remove unneded passing of contracts manager
This commit is contained in:
parent
20d7496980
commit
9929415da8
|
@ -180,12 +180,12 @@ class Engine {
|
|||
self.events.emit('code-generator-ready');
|
||||
});
|
||||
};
|
||||
const cargo = async.cargo((tasks, callback) => {
|
||||
generateCode(tasks[tasks.length - 1].contractsManager);
|
||||
const cargo = async.cargo((_tasks, callback) => {
|
||||
generateCode();
|
||||
self.events.once('outputDone', callback);
|
||||
});
|
||||
const addToCargo = function () {
|
||||
cargo.push({contractsManager: self.contractsManager});
|
||||
cargo.push({});
|
||||
};
|
||||
|
||||
this.events.on('contractsDeployed', addToCargo);
|
||||
|
@ -230,7 +230,6 @@ class Engine {
|
|||
logger: this.logger,
|
||||
events: this.events,
|
||||
plugins: this.plugins
|
||||
//gasLimit: options.gasLimit
|
||||
});
|
||||
|
||||
this.events.on('file-event', function (fileType) {
|
||||
|
|
Loading…
Reference in New Issue