File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ var checkForContractAddress = function(contract, callback){
117
117
} else {
118
118
119
119
contract . _eth . getTransactionReceipt ( contract . transactionHash , function ( e , receipt ) {
120
- if ( receipt && ! callbackFired ) {
120
+ if ( receipt && receipt . blockHash && ! callbackFired ) {
121
121
122
122
contract . _eth . getCode ( receipt . contractAddress , function ( e , code ) {
123
123
/*jshint maxcomplexity: 6 */
@@ -178,7 +178,7 @@ var ContractFactory = function (eth, abi) {
178
178
*/
179
179
this . new = function ( ) {
180
180
/*jshint maxcomplexity: 7 */
181
-
181
+
182
182
var contract = new Contract ( this . eth , this . abi ) ;
183
183
184
184
// parse arguments
@@ -210,7 +210,7 @@ var ContractFactory = function (eth, abi) {
210
210
211
211
if ( callback ) {
212
212
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
214
214
this . eth . sendTransaction ( options , function ( err , hash ) {
215
215
if ( err ) {
216
216
callback ( err ) ;
You can’t perform that action at this time.
0 commit comments