Skip to content

Commit

Permalink
chore: allow full zetaclient config overlay (#2945)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera authored Oct 1, 2024
1 parent ebd42f9 commit 77486d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ contrib/localnet/addresses.txt

# Config for e2e tests
e2e_conf*
contrib/localnet/scripts/extra-evm-chains.json
contrib/localnet/scripts/zetaclient-config-overlay.json
6 changes: 3 additions & 3 deletions contrib/localnet/scripts/start-zetaclientd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ then
fi
fi

# merge extra-evm-chains.json into zetaclient_config.json if specified
if [[ -f /root/extra-evm-chains.json ]]; then
jq '.EVMChainConfigs *= input' /root/.zetacored/config/zetaclient_config.json /root/extra-evm-chains.json > /tmp/merged_config.json
# merge zetaclient-config-overlay.json into zetaclient_config.json if specified
if [[ -f /root/zetaclient-config-overlay.json ]]; then
jq -s '.[0] * .[1]' /root/.zetacored/config/zetaclient_config.json /root/zetaclient-config-overlay.json > /tmp/merged_config.json
mv /tmp/merged_config.json /root/.zetacored/config/zetaclient_config.json
fi

Expand Down

0 comments on commit 77486d7

Please sign in to comment.