mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
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) {
|
||||
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({
|
||||
web3: web3,
|
||||
|
Loading…
x
Reference in New Issue
Block a user