Add access to the contract

This commit is contained in:
Anthony Laibe 2018-07-23 14:12:20 +01:00 committed by Iuri Matias
parent 147292d8f0
commit 692014aa8d

View File

@ -260,14 +260,22 @@ class Embark {
engine.startService("libraryManager"); engine.startService("libraryManager");
engine.startService("codeRunner"); engine.startService("codeRunner");
engine.startService("web3"); engine.startService("web3");
engine.startService("deployment", {onlyCompile: true}); engine.startService("pipeline");
engine.startService("deployment", {onlyCompile: false});
engine.startService("storage"); engine.startService("storage");
engine.startService("codeGenerator");
callback(); callback();
}, },
function deploy(callback) { function deploy(callback) {
engine.events.request('deploy:contracts', function (err) { 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); callback(err);
}); });
}, },