Skip to content

Commit

Permalink
check blockHash (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
7flash authored and frozeman committed Jan 11, 2018
1 parent de3d64a commit 013b23e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/web3/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var checkForContractAddress = function(contract, callback){
} else {

contract._eth.getTransactionReceipt(contract.transactionHash, function(e, receipt){
if(receipt && !callbackFired) {
if(receipt && receipt.blockHash && !callbackFired) {

contract._eth.getCode(receipt.contractAddress, function(e, code){
/*jshint maxcomplexity: 6 */
Expand Down Expand Up @@ -178,7 +178,7 @@ var ContractFactory = function (eth, abi) {
*/
this.new = function () {
/*jshint maxcomplexity: 7 */

var contract = new Contract(this.eth, this.abi);

// parse arguments
Expand Down

0 comments on commit 013b23e

Please sign in to comment.