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

View File

@ -197,7 +197,7 @@ class GethCommands {
}, },
function accountToUnlock(callback) { function accountToUnlock(callback) {
let accountAddress = ""; let accountAddress = "";
if(config.hasOwnProperty('address') && config.account.hasOwnProperty('address')) { if(config.account && config.account.address) {
accountAddress = config.account.address; accountAddress = config.account.address;
} else { } else {
accountAddress = address; accountAddress = address;