axelarnetwork / axelarate-community

Tools to join the axelar network
GNU General Public License v3.0
44 stars 57 forks source link

fix: revert #330 and instead check before overwriting #331

Closed ggutoski closed 2 years ago

ggutoski commented 2 years ago

330 doesn't work if user passes -n mainnet. This PR reverts #330 and instead checks root_directory and chain_id before setting as suggested in https://github.com/axelarnetwork/axelarate-community/pull/330#discussion_r795918845

EDIT: Tested locally to verify that env vars are properly set with all combos of -n -d -c.