From 98eb83c7748ff983edf4cf5d0365b0cd82ceaa0c Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 10 Dec 2025 18:59:01 +0100 Subject: [PATCH] fix: use getChannel instead of getConnection for channel queries --- spec/relayer/ics-018-relayer-algorithms/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/relayer/ics-018-relayer-algorithms/README.md b/spec/relayer/ics-018-relayer-algorithms/README.md index 9191673dc..cd37574b4 100644 --- a/spec/relayer/ics-018-relayer-algorithms/README.md +++ b/spec/relayer/ics-018-relayer-algorithms/README.md @@ -177,7 +177,7 @@ function pendingDatagrams(chain: Chain, counterparty: Chain): List // - Determine if any packets, acknowledgements, or timeouts need to be relayed channels = chain.getChannelsUsingConnections(connections) for (const localEnd of channels) { - remoteEnd = counterparty.getConnection(localEnd.counterpartyIdentifier) + remoteEnd = counterparty.getChannel(localEnd.counterpartyPortIdentifier, localEnd.counterpartyChannelIdentifier) // Deal with handshakes in progress if (localEnd.state === INIT && remoteEnd === null) // Handshake has started locally (1 step done), relay `chanOpenTry` to the remote end