Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GasService): update for all chains
Browse files Browse the repository at this point in the history
re1ro committed Mar 28, 2024
1 parent 25c74cf commit 34efbc0
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-gas-info.yaml
Original file line number Diff line number Diff line change
@@ -52,4 +52,4 @@ jobs:
echo "ENV=$ENV" >> .env
echo "CHAINS=all" >> .env
node evm/operators.js --action updateGasInfo -y --chains $(echo $(jq -r '.chains | keys | join(" ")' axelar-chains-config/info/$ENV.json))
node evm/operators.js --action updateGasInfo --chains all -y
4 changes: 4 additions & 0 deletions evm/gas-service.js
Original file line number Diff line number Diff line change
@@ -34,6 +34,10 @@ async function getGasUpdates(config, env, chain, destinationChains) {
isNonEmptyStringArray: { destinationChains },
});

if (destinationChains.includes('all')) {
destinationChains = Object.keys(config.chains);
}

let gasUpdates = await Promise.all(
destinationChains.map(async (destinationChain) => {
const destinationConfig = config.chains[destinationChain];

0 comments on commit 34efbc0

Please sign in to comment.