From f373f689deb605061a697e8cfc0b62e2ad99d2b9 Mon Sep 17 00:00:00 2001 From: Tobi Okedeji Date: Tue, 16 Jul 2024 17:01:21 +0100 Subject: [PATCH] pull allora-chain when it exist --- allocmd/utilities/constants.py | 2 +- allocmd/utilities/utils.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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: