Skip to content

Commit

Permalink
Callback in construct is called only after the contract instance is s…
Browse files Browse the repository at this point in the history
…aved
  • Loading branch information
rlisagor committed Jan 22, 2017
1 parent c51bbaf commit b3d2d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web3.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Web3.prototype.define = function(modelData) {
} else {
if (typeof contractInstance.address !== 'undefined') {
debug('Contract mined! address: ' + contractInstance.address + ' transactionHash: ' + contractInstance.transactionHash);
cb && cb(null, {id:contractInstance.address})
contracts[contractInstance.address] = contractInstance;
cb && cb(null, {id:contractInstance.address})
}
}
})
Expand Down

0 comments on commit b3d2d20

Please sign in to comment.