Skip to content

Commit

Permalink
Merge pull request #826 from CosmWasm/cw3-query-corrected
Browse files Browse the repository at this point in the history
Generic query for cw3 unification
  • Loading branch information
uint authored Oct 12, 2022
2 parents 72afcde + e64af4a commit 04f9ebb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cw3/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ pub enum Status {
}

#[cw_serde]
pub struct ProposalListResponse {
pub proposals: Vec<ProposalResponse>,
pub struct ProposalListResponse<T = Empty>
where
T: Clone + fmt::Debug + PartialEq + JsonSchema,
{
pub proposals: Vec<ProposalResponse<T>>,
}

#[cw_serde]
Expand Down

0 comments on commit 04f9ebb

Please sign in to comment.