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

View File

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