mirror of https://github.com/embarklabs/embark.git
fix account initialization and address use
This commit is contained in:
parent
91cec97a76
commit
08358fce0a
|
@ -197,7 +197,7 @@ class GethCommands {
|
|||
},
|
||||
function accountToUnlock(callback) {
|
||||
let accountAddress = "";
|
||||
if(config.hasOwnProperty('address') && config.account.hasOwnProperty('address')) {
|
||||
if(config.account && config.account.address) {
|
||||
accountAddress = config.account.address;
|
||||
} else {
|
||||
accountAddress = address;
|
||||
|
|
Loading…
Reference in New Issue