Skip to content

Commit 596da7e

Browse files
committed
Merge branch 'develop'
2 parents fc12360 + 0111999 commit 596da7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/web3/contract.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ var checkForContractAddress = function(contract, callback){
117117
} else {
118118

119119
contract._eth.getTransactionReceipt(contract.transactionHash, function(e, receipt){
120-
if(receipt && !callbackFired) {
120+
if(receipt && receipt.blockHash && !callbackFired) {
121121

122122
contract._eth.getCode(receipt.contractAddress, function(e, code){
123123
/*jshint maxcomplexity: 6 */
@@ -178,7 +178,7 @@ var ContractFactory = function (eth, abi) {
178178
*/
179179
this.new = function () {
180180
/*jshint maxcomplexity: 7 */
181-
181+
182182
var contract = new Contract(this.eth, this.abi);
183183

184184
// parse arguments
@@ -210,7 +210,7 @@ var ContractFactory = function (eth, abi) {
210210

211211
if (callback) {
212212

213-
// wait for the contract address adn check if the code was deployed
213+
// wait for the contract address and check if the code was deployed
214214
this.eth.sendTransaction(options, function (err, hash) {
215215
if (err) {
216216
callback(err);

0 commit comments

Comments
 (0)