Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
if unable to retrieve blockInfo, poll again
Browse files Browse the repository at this point in the history
  • Loading branch information
CruzMolina committed Apr 9, 2019
1 parent 5220e3a commit 930db8e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ class Reporter {
data.receipt.blockNumber
);

// if geth returns null, try again!
if (!block) return this.postDeploy(data);

data.timestamp = block.timestamp;

const balance = await data.contract.web3.eth.getBalance(tx.from);
Expand Down

0 comments on commit 930db8e

Please sign in to comment.