Skip to content

Commit

Permalink
chore: bump axelar-chain-configs version to 1.3.0 (#110)
Browse files Browse the repository at this point in the history
* chore: update axelar-chain-configs version to 1.2.0

* chore: update axelar-chains-config to 1.3.0

* chore: bump axelar-local-dev version to 2.3.3

* chore: use node-version 18 in tests workflow

* chore: fix npm ci error

* chore: update setup-node to v4

* chore: add some checks for setupAndExport
  • Loading branch information
npty authored Jul 11, 2024
1 parent 8c5b052 commit c5e02a6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 27 deletions.
36 changes: 11 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/axelar-local-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axelar-network/axelar-local-dev",
"version": "2.3.2",
"version": "2.3.3",
"description": "",
"main": "dist/index.js",
"files": [
Expand Down Expand Up @@ -34,7 +34,7 @@
"homepage": "https://github.com/axelarnetwork/axelar-local-dev#readme",
"dependencies": {
"@axelar-network/axelar-cgp-solidity": "^6.3.0",
"@axelar-network/axelar-chains-config": "^1.2.0",
"@axelar-network/axelar-chains-config": "^1.3.0",
"@axelar-network/axelar-gmp-sdk-solidity": "^5.7.0",
"@axelar-network/interchain-token-service": "^1.2.4",
"ethers": "^5.6.5",
Expand Down
8 changes: 8 additions & 0 deletions packages/axelar-local-dev/src/exportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ export async function setupAndExport(options: SetupLocalOptions) {
throw Error('At least 2 chains are required to setup and export');
}

for (const chain of chains) {
// check if given rpc url is valid using ethers.js to get latest block
const provider = new ethers.providers.JsonRpcProvider(chain.rpcUrl);
await provider.getBlockNumber().catch((e) => {
throw Error(`Please check if the ${chain.name} chain is running on ${chain.rpcUrl}`)
});
}

const _options = {
chainOutputPath: chainOutputPath || './local.json',
chains,
Expand Down

0 comments on commit c5e02a6

Please sign in to comment.