Merge pull request #571 from embark-framework/bug_fix/upload-fail-solc-plugin

Fix for embark upload failing when embark-solc plugin is installed.
This commit is contained in:
RJ Catalano 2018-06-22 12:58:06 -05:00 committed by GitHub
commit c492ed97cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -346,12 +346,15 @@ class Embark {
})
.catch(callback);
});
engine.events.request('deploy:contracts', function (err) {
engine.logger.info(__("finished deploying").underline);
if (err) {
callback(err);
}
engine.events.on('check:backOnline:Ethereum', function () {
engine.logger.info(__('Ethereum node detected') + '..');
engine.config.reloadConfig();
engine.events.request('deploy:contracts', function (err) {
if (err) {
return;
}
engine.logger.info(__('Deployment Done'));
});
});
}
], function (err, _result) {