[cli] Move `_set_account_keystore_path` call to `_sync_accounts`

pull/2/head
Daniel Van Der Maden 5 years ago
parent 9a20f03985
commit 2f538231c9
  1. 2
      pyhmy/cli.py

@ -132,6 +132,7 @@ def _sync_accounts():
"""
Internal function that UPDATES the accounts keystore with the CLI's keystore.
"""
_set_account_keystore_path()
_accounts.clear()
_accounts.update(_get_current_accounts_keystore())
@ -178,7 +179,6 @@ def set_binary(path):
if not is_valid_binary(path):
return False
_binary_path = path
_set_account_keystore_path()
_sync_accounts()
return True

Loading…
Cancel
Save