Fix for embark upload failing when embark-solc plugin is installed.

It was simply too fast with the solc plugin and the blockchain node was not yet ready before solc would try to compile and deploy, and would error out while estimating gas costs.
This commit is contained in:
emizzle 2018-06-22 15:17:51 +10:00 committed by Iuri Matias
parent 8c1bb07000
commit f269eb748a
1 changed files with 9 additions and 6 deletions

View File

@ -354,12 +354,15 @@ class Embark {
})
.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.logger.info(__("finished deploying").underline);
if (err) {
callback(err);
return;
}
engine.logger.info(__('Deployment Done'));
});
});
}
], function (err, _result) {