Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Parity compatibility #1243

Merged
merged 1 commit into from
Jan 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
check blockHash
  • Loading branch information
7flash committed Dec 21, 2017
commit e7d7d80c08dd9014b7860a80096577c2c956e50d
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