From 9929415da888507764df4a69228d68cc621c1917 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 31 May 2018 10:09:26 -0400 Subject: [PATCH] remove unneded passing of contracts manager --- lib/core/engine.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/core/engine.js b/lib/core/engine.js index 671b7cd0a..cf7336e24 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -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) {