Skip to content

Commit

Permalink
chore: fix error when axelar key doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Nov 8, 2024
1 parent ed4b22c commit 345c15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/validateChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function validateChainIdentifier(chainIdentifier: string, environme
};

const chainIdentifiers = Object.keys(s3.chains);
const axelarIdentifier = s3["axelar"].axelarId;
const axelarIdentifier = s3["axelar"]?.axelarId || "axelar";
chainIdentifiers.push(axelarIdentifier);

const foundChain = chainIdentifiers.find(
Expand Down

0 comments on commit 345c15f

Please sign in to comment.