fix account initialization and address use

This commit is contained in:
Jonathan Rainville 2018-07-03 14:55:04 -04:00
parent 91cec97a76
commit 08358fce0a
1 changed files with 1 additions and 1 deletions

View File

@ -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;