From a2a52b7453a6832f47469505b78c2d3e0ede5344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Laferri=C3=A8re?= Date: Fri, 13 Jan 2023 17:08:03 -0500 Subject: [PATCH] Fix `ChanOpenConfirm` check of counterparty state (#354) * fix * changelog --- .changelog/unreleased/bug-fixes/353-channel-open-confirm-fix.md | 2 ++ crates/ibc/src/core/ics04_channel/handler/chan_open_confirm.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .changelog/unreleased/bug-fixes/353-channel-open-confirm-fix.md diff --git a/.changelog/unreleased/bug-fixes/353-channel-open-confirm-fix.md b/.changelog/unreleased/bug-fixes/353-channel-open-confirm-fix.md new file mode 100644 index 000000000..1027abb69 --- /dev/null +++ b/.changelog/unreleased/bug-fixes/353-channel-open-confirm-fix.md @@ -0,0 +1,2 @@ +- Fix ChanOpenConfirm handler check of counterparty state + ([#353](https://github.com/cosmos/ibc-rs/issues/353)) \ No newline at end of file diff --git a/crates/ibc/src/core/ics04_channel/handler/chan_open_confirm.rs b/crates/ibc/src/core/ics04_channel/handler/chan_open_confirm.rs index 4eef3fe54..94fc45443 100644 --- a/crates/ibc/src/core/ics04_channel/handler/chan_open_confirm.rs +++ b/crates/ibc/src/core/ics04_channel/handler/chan_open_confirm.rs @@ -68,7 +68,7 @@ pub(crate) fn process( } let expected_chan_end_on_a = ChannelEnd::new( - State::Init, + State::Open, *chan_end_on_b.ordering(), Counterparty::new(msg.port_id_on_b.clone(), None), vec![conn_id_on_a.clone()],