diff --git a/lib/deploy.js b/lib/deploy.js index 8e43994e..2f34bea7 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -109,7 +109,9 @@ Deploy.prototype.deployContract = function(contract, params, callback) { var contractParams = (params || contract.args).slice(); this.web3.eth.getAccounts(function(err, accounts) { - //console.log("using address" + this.web3.eth.accounts[0]); + if (err) { + return callback(new Error(err)); + } // TODO: probably needs to be defaultAccount // TODO: it wouldn't necessary be the first address