Skip to content

Commit

Permalink
fix(@embark/deploy-tracker): continue if getting block fails
Browse files Browse the repository at this point in the history
Makes using the --fork option of ganache work even in mainnet
  • Loading branch information
jrainville authored and iurimatias committed Aug 19, 2019
1 parent a4dbf92 commit 0fe070c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/embark-deploy-tracker/src/index.js
Expand Up @@ -86,7 +86,12 @@ class DeployTracker {
getBlock(0, (err) => {
if (err) {
// Retry with block 1 (Block 0 fails with Ganache-cli using the --fork option)
return getBlock(1, callback);
return getBlock(1, (err) => {
if (err) {
self.logger.error(__('Error getting block data. The deploy-tracker will not work'), err);
}
callback();
});
}
callback();
});
Expand Down

0 comments on commit 0fe070c

Please sign in to comment.