Skip to content

Commit

Permalink
add counterparty channel id
Browse files Browse the repository at this point in the history
  • Loading branch information
avahowell committed Mar 1, 2024
1 parent aca2eeb commit 553b344
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/bin/pcli/src/command/query/ibc_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ impl IbcCmd {
"Channel ID",
"Port",
"Counterparty",
"Counterparty Channel ID",
"State",
"Client ID",
"Client Height",
Expand All @@ -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(),
Expand Down Expand Up @@ -215,6 +221,7 @@ impl IbcCmd {
"Channel ID",
"Port",
"Counterparty",
"Counterparty Channel ID",
"State",
"Client ID",
"Client Height",
Expand All @@ -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(),
Expand Down

0 comments on commit 553b344

Please sign in to comment.