We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de3d64a commit 013b23eCopy full SHA for 013b23e
lib/web3/contract.js
@@ -117,7 +117,7 @@ var checkForContractAddress = function(contract, callback){
117
} else {
118
119
contract._eth.getTransactionReceipt(contract.transactionHash, function(e, receipt){
120
- if(receipt && !callbackFired) {
+ if(receipt && receipt.blockHash && !callbackFired) {
121
122
contract._eth.getCode(receipt.contractAddress, function(e, code){
123
/*jshint maxcomplexity: 6 */
@@ -178,7 +178,7 @@ var ContractFactory = function (eth, abi) {
178
*/
179
this.new = function () {
180
/*jshint maxcomplexity: 7 */
181
-
+
182
var contract = new Contract(this.eth, this.abi);
183
184
// parse arguments
0 commit comments