diff --git a/pyhmy/cli.py b/pyhmy/cli.py index 6f85325..ac6c265 100644 --- a/pyhmy/cli.py +++ b/pyhmy/cli.py @@ -367,6 +367,6 @@ def download(path="./bin/hmy", replace=True, verbose=True): if os.path.exists(f"{get_gopath()}/src/github.com/harmony-one/bls") \ and os.path.exists(f"{get_gopath()}/src/github.com/harmony-one/mcl"): # Check prevents needless import fails. environment.update(get_bls_build_variables()) -_default_bin_path = _get_default_hmy_binary_path() -if _default_bin_path and is_valid_binary(_default_bin_path): - set_binary(_default_bin_path) + _default_bin_path = _get_default_hmy_binary_path() + if _default_bin_path and is_valid_binary(_default_bin_path): + set_binary(_default_bin_path)