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');
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue