From 553b34407c8be79381b4d7c546beda05f25cbaab Mon Sep 17 00:00:00 2001 From: Ava Howell Date: Tue, 27 Feb 2024 18:16:51 -0800 Subject: [PATCH] add counterparty channel id --- crates/bin/pcli/src/command/query/ibc_query.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/bin/pcli/src/command/query/ibc_query.rs b/crates/bin/pcli/src/command/query/ibc_query.rs index 763abe1923..755ed2fb35 100644 --- a/crates/bin/pcli/src/command/query/ibc_query.rs +++ b/crates/bin/pcli/src/command/query/ibc_query.rs @@ -156,6 +156,7 @@ impl IbcCmd { "Channel ID", "Port", "Counterparty", + "Counterparty Channel ID", "State", "Client ID", "Client Height", @@ -165,6 +166,11 @@ impl IbcCmd { channel_id.to_string(), port.to_string(), client_state.chain_id.to_string(), + channel + .counterparty + .ok_or_else(|| anyhow::anyhow!("counterparty not found"))? + .channel_id + .to_string(), state_str, connection.client_id.to_string(), client_state.latest_height.to_string(), @@ -215,6 +221,7 @@ impl IbcCmd { "Channel ID", "Port", "Counterparty", + "Counterparty Channel ID", "State", "Client ID", "Client Height", @@ -226,6 +233,11 @@ impl IbcCmd { info.channel.channel_id.to_string(), info.channel.port_id, info.client.chain_id.to_string(), + info.channel + .counterparty + .ok_or_else(|| anyhow::anyhow!("counterparty not found"))? + .channel_id + .to_string(), state_str, info.connection.client_id.to_string(), info.client.latest_height.to_string(),