Skip to content

Commit

Permalink
fix: handle no transfer channel
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jun 12, 2024
1 parent 83d470b commit 1735a2e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/orchestration/scripts/fetch-chain-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 [',
Expand Down

0 comments on commit 1735a2e

Please sign in to comment.