mirror of https://github.com/embarklabs/embark.git
handle error if no accounts are found
This commit is contained in:
parent
a7d6d36506
commit
c30a289945
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue