Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
okedeji committed Apr 23, 2024
1 parent 6ce1f54 commit f73ca15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion allocmd/utilities/constants.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cliVersion = "0.3.11"
cliVersion = "0.3.12"
16 changes: 8 additions & 8 deletions allocmd/utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,16 @@ def generateWorkerAccount(worker_name, type):
faucet_url = config['faucet_url']
account_details = None
if not config[type]['mnemonic'] or not config[type]['hex_coded_pk'] or not config[type]['address']:
account_details = create_worker_account(worker_name, faucet_url, 'worker')
account_details = create_worker_account(worker_name, faucet_url, type)

mnemonic = account_details[0] if account_details else config['worker']['mnemonic']
hex_coded_pk = account_details[1] if account_details else config['worker']['hex_coded_pk']
address = account_details[2] if account_details else config['worker']['address']
mnemonic = account_details[0] if account_details else config[type]['mnemonic']
hex_coded_pk = account_details[1] if account_details else config[type]['hex_coded_pk']
address = account_details[2] if account_details else config[type]['address']

if not config['worker']['mnemonic'] or not config['worker']['hex_coded_pk'] or not config['worker']['address']:
config['worker']['mnemonic'] = mnemonic
config['worker']['hex_coded_pk'] = hex_coded_pk
config['worker']['address'] = address
if not config[type]['mnemonic'] or not config[type]['hex_coded_pk'] or not config[type]['address']:
config[type]['mnemonic'] = mnemonic
config[type]['hex_coded_pk'] = hex_coded_pk
config[type]['address'] = address
with open(config_path, 'w') as file:
yaml.safe_dump(config, file)

Expand Down

0 comments on commit f73ca15

Please sign in to comment.