Merge pull request #597 from embark-framework/bug_fix/account-dev

fix account initialization and address use
This commit is contained in:
Jonathan Rainville 2018-07-03 15:25:15 -04:00 committed by GitHub
commit 343bc643a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;