From 1735a2e75817af6797de18a1e18a1bafa0caf140 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Wed, 12 Jun 2024 14:17:51 -0700 Subject: [PATCH] fix: handle no transfer channel --- packages/orchestration/scripts/fetch-chain-info.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/orchestration/scripts/fetch-chain-info.ts b/packages/orchestration/scripts/fetch-chain-info.ts index 0b4506d6ab5b..044328b1fc56 100755 --- a/packages/orchestration/scripts/fetch-chain-info.ts +++ b/packages/orchestration/scripts/fetch-chain-info.ts @@ -57,6 +57,16 @@ function toConnectionEntry(ibcInfo: IBCInfo, name: string) { // @ts-expect-error tags does not specify keys c.tags?.preferred, ); + if (transferChannels.length === 0) { + console.warn( + 'no transfer channel for [', + from.chain_name, + to.chain_name, + ']', + '(skipping)', + ); + return []; + } if (transferChannels.length > 1) { console.warn( 'multiple preferred transfer channels [',