From 692014aa8df7541938e7b11b885f35b68cd0990c Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 23 Jul 2018 14:12:20 +0100 Subject: [PATCH] Add access to the contract --- lib/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 1e216a16..b0f1f41a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -260,14 +260,22 @@ class Embark { engine.startService("libraryManager"); engine.startService("codeRunner"); engine.startService("web3"); - engine.startService("deployment", {onlyCompile: true}); + engine.startService("pipeline"); + engine.startService("deployment", {onlyCompile: false}); engine.startService("storage"); + engine.startService("codeGenerator"); callback(); }, function deploy(callback) { engine.events.request('deploy:contracts', function (err) { - engine.logger.info("Finished deploying".underline); + callback(err); + }); + }, + function waitForWriteFinish(callback) { + engine.logger.info("Finished deploying".underline); + engine.events.on('outputDone', (err) => { + engine.logger.info(__("finished building").underline); callback(err); }); },