diff --git a/allocmd/utilities/constants.py b/allocmd/utilities/constants.py index 87b6038..013f55c 100644 --- a/allocmd/utilities/constants.py +++ b/allocmd/utilities/constants.py @@ -1 +1 @@ -cliVersion = "2.0.6" +cliVersion = "2.0.7" diff --git a/allocmd/utilities/utils.py b/allocmd/utilities/utils.py index a727027..a2f7727 100644 --- a/allocmd/utilities/utils.py +++ b/allocmd/utilities/utils.py @@ -23,6 +23,14 @@ def create_worker_account(worker_name, faucet_url, type, network="edgenet"): stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL ) + else: + print(colored("Found allora-chain. Pulling latest changes...", "green")) + subprocess.run( + ['git', '-C', allora_chain_dir, 'pull', 'origin', 'main'], + check=True, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL + ) make_path = shutil.which('make') if make_path: