if any account is configured in blockchain.json then use it as the default account for deploying contracts
This commit is contained in:
parent
18c299fa3a
commit
16275f13e5
|
@ -62,7 +62,8 @@ DeployManager.prototype.deployContracts = function(done) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return callback(new Error(err));
|
return callback(new Error(err));
|
||||||
}
|
}
|
||||||
web3.eth.defaultAccount = accounts[0];
|
var selectedAccount = self.config.blockchainConfig.account.address;
|
||||||
|
web3.eth.defaultAccount = (selectedAccount || accounts[0]);
|
||||||
|
|
||||||
var deploy = new Deploy({
|
var deploy = new Deploy({
|
||||||
web3: web3,
|
web3: web3,
|
||||||
|
|
Loading…
Reference in New Issue