diff --git a/contracts/reflect/schema/query_msg.json b/contracts/reflect/schema/query_msg.json index e34e1ad7dd..7d658bef1e 100644 --- a/contracts/reflect/schema/query_msg.json +++ b/contracts/reflect/schema/query_msg.json @@ -172,7 +172,7 @@ } }, { - "description": "Lists all (portID, channelID) pairs that are bound to a given port If port_id is omitted, list all channels bound to the contract's port. Returns ListChannelsResponse.", + "description": "Lists all channels that are bound to a given port. If `port_id` is omitted, this list all channels bound to the contract's port. Returns a `ListChannelsResponse`.", "type": "object", "required": [ "list_channels" diff --git a/packages/std/src/ibc.rs b/packages/std/src/ibc.rs index 3c47072155..4f5bd5310d 100644 --- a/packages/std/src/ibc.rs +++ b/packages/std/src/ibc.rs @@ -67,9 +67,9 @@ pub enum IbcQuery { /// Gets the Port ID the current contract is bound to. /// Returns PortIdResponse PortId {}, - /// Lists all (portID, channelID) pairs that are bound to a given port - /// If port_id is omitted, list all channels bound to the contract's port. - /// Returns ListChannelsResponse. + /// Lists all channels that are bound to a given port. + /// If `port_id` is omitted, this list all channels bound to the contract's port. + /// Returns a `ListChannelsResponse`. ListChannels { port_id: Option }, /// Lists all information for a (portID, channelID) pair. /// If port_id is omitted, it will default to the contract's own channel. @@ -89,7 +89,7 @@ pub struct PortIdResponse { #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)] pub struct ListChannelsResponse { - pub channels: Vec, + pub channels: Vec, } #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]