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()],