Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Jan 17, 2018
2 parents fc12360 + 0111999 commit 596da7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Expand Up @@ -210,7 +210,7 @@ var ContractFactory = function (eth, abi) {

if (callback) {

// wait for the contract address adn check if the code was deployed
// wait for the contract address and check if the code was deployed
this.eth.sendTransaction(options, function (err, hash) {
if (err) {
callback(err);
Expand Down

0 comments on commit 596da7e

Please sign in to comment.