-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update contract.js #1029
Update contract.js #1029
Conversation
ometimes blockHash is null the second time. You have to wait for the third event
lib/web3/contract.js
Outdated
@@ -117,8 +117,9 @@ var checkForContractAddress = function(contract, callback){ | |||
} else { | |||
|
|||
contract._eth.getTransactionReceipt(contract.transactionHash, function(e, receipt){ | |||
if(receipt && !callbackFired) { | |||
if(receipt && receipt.blockHash && !callbackFired) { // sometimes blockHash is null the second time - Marco Guarducci <mark.guarducci@gmail.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no particular reason you would add this comment. It's already in git and it doesn't clarify anything particularly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes please remove that comment and we can merge that in. web3.js should not be a self advertisement platform ;P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have removed comment
@gigirobot |
@MarcoGuarducci please remove the comment, so i can merge. |
Sorry for delay. I have removed comment. |
Sometimes blockHash is null the second time. You have to wait for the third event