From 4f8cb0e8236afbf5c222ebe75ea527efe104b791 Mon Sep 17 00:00:00 2001 From: Dmitry <98899785+mdqst@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:10:09 +0300 Subject: [PATCH] fix: Fix incorrect validation in chanCloseFrozen function in README.md --- spec/core/ics-004-channel-and-packet-semantics/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/core/ics-004-channel-and-packet-semantics/README.md b/spec/core/ics-004-channel-and-packet-semantics/README.md index 1590d51c4..9dba3b65b 100644 --- a/spec/core/ics-004-channel-and-packet-semantics/README.md +++ b/spec/core/ics-004-channel-and-packet-semantics/README.md @@ -632,7 +632,7 @@ function chanCloseFrozen( channel = provableStore.get(channelPath(portIdentifier, channelIdentifier)) abortTransactionUnless(channel !== null) hopsLength = channel.connectionHops.length - abortTransactionUnless(hopsLength === 1) + abortTransactionUnless(hopsLength > 1) abortTransactionUnless(channel.state !== CLOSED) connection = provableStore.get(connectionPath(channel.connectionHops[0])) abortTransactionUnless(connection !== null)