Skip to content

Commit 0fe070c

Browse files
jrainvilleiurimatias
authored andcommitted
fix(@embark/deploy-tracker): continue if getting block fails
Makes using the --fork option of ganache work even in mainnet
1 parent a4dbf92 commit 0fe070c

File tree

1 file changed

+6
-1
lines changed
  • packages/embark-deploy-tracker/src

1 file changed

+6
-1
lines changed

packages/embark-deploy-tracker/src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ class DeployTracker {
8686
getBlock(0, (err) => {
8787
if (err) {
8888
// Retry with block 1 (Block 0 fails with Ganache-cli using the --fork option)
89-
return getBlock(1, callback);
89+
return getBlock(1, (err) => {
90+
if (err) {
91+
self.logger.error(__('Error getting block data. The deploy-tracker will not work'), err);
92+
}
93+
callback();
94+
});
9095
}
9196
callback();
9297
});

0 commit comments

Comments
 (0)