Skip to content

Commit 6d11232

Browse files
committed
fix: update return values
1 parent 71dcf99 commit 6d11232

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

cosmwasm/ibc-union/core/msg/src/query.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,30 @@ use unionlabs_primitives::H256;
88
derive(cosmwasm_schema::QueryResponses, cw_orch::QueryFns)
99
)]
1010
pub enum QueryMsg {
11-
#[cfg_attr(feature = "cw-orch-interface", returns(Timestamp))]
11+
#[cfg_attr(feature = "cw-orch-interface", returns(ibc_union_spec::Timestamp))]
1212
GetTimestampAtHeight { client_id: ClientId, height: u64 },
1313
#[cfg_attr(feature = "cw-orch-interface", returns(u64))]
1414
GetLatestHeight { client_id: ClientId },
15-
#[cfg_attr(feature = "cw-orch-interface", returns(cosmwasm_std::Binary))]
15+
#[cfg_attr(feature = "cw-orch-interface", returns(unionlabs_primitives::Bytes))]
1616
GetClientState { client_id: ClientId },
17-
#[cfg_attr(feature = "cw-orch-interface", returns(cosmwasm_std::Binary))]
17+
#[cfg_attr(feature = "cw-orch-interface", returns(unionlabs_primitives::Bytes))]
1818
GetConsensusState { client_id: ClientId, height: u64 },
1919
#[cfg_attr(feature = "cw-orch-interface", returns(crate::lightclient::Status))]
2020
GetStatus { client_id: ClientId },
21-
#[cfg_attr(feature = "cw-orch-interface", returns(u64))]
21+
#[cfg_attr(feature = "cw-orch-interface", returns(String))]
2222
GetClientType { client_id: ClientId },
23-
#[cfg_attr(
24-
feature = "cw-orch-interface",
25-
returns(ibc_union_spec::types::Connection)
26-
)]
23+
#[cfg_attr(feature = "cw-orch-interface", returns(ibc_union_spec::Connection))]
2724
GetConnection { connection_id: ConnectionId },
28-
#[cfg_attr(feature = "cw-orch-interface", returns(ibc_union_spec::types::Channel))]
25+
#[cfg_attr(feature = "cw-orch-interface", returns(ibc_union_spec::Channel))]
2926
GetChannel { channel_id: ChannelId },
3027
#[cfg_attr(feature = "cw-orch-interface", returns(std::collections::BTreeSet<u32>))]
3128
GetChannels { contract: String },
32-
#[cfg_attr(feature = "cw-orch-interface", returns(Option<Vec<u8>>))]
29+
#[cfg_attr(feature = "cw-orch-interface", returns(Option<H256>))]
3330
GetBatchPackets { batch_hash: H256 },
34-
#[cfg_attr(feature = "cw-orch-interface", returns(Option<Vec<u8>>))]
31+
#[cfg_attr(feature = "cw-orch-interface", returns(Option<H256>))]
3532
GetBatchReceipts { batch_hash: H256 },
3633
#[cfg_attr(feature = "cw-orch-interface", returns(cosmwasm_std::Addr))]
3734
GetClientImpl { client_id: ClientId },
38-
#[cfg_attr(feature = "cw-orch-interface", returns(cosmwasm_std::Addr))]
35+
#[cfg_attr(feature = "cw-orch-interface", returns(String))]
3936
GetRegisteredClientType { client_type: String },
4037
}

0 commit comments

Comments
 (0)