From 345c15fcf934721ae30f83a0ba69b1d6d99349c7 Mon Sep 17 00:00:00 2001 From: npty Date: Fri, 8 Nov 2024 15:35:19 +0700 Subject: [PATCH] chore: fix error when axelar key doesn't exist --- src/utils/validateChain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/validateChain.ts b/src/utils/validateChain.ts index aaf8745..71f0a8d 100644 --- a/src/utils/validateChain.ts +++ b/src/utils/validateChain.ts @@ -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(