Skip to content

Conversation

@MissingNO57
Copy link
Contributor

@MissingNO57 MissingNO57 commented Apr 4, 2025

In case when I use code like this in the contract

#[cw_serde]
#[derive(QueryResponses)]
#[query_responses(nested)]
#[serde(untagged)]
pub enum QueryMsg {
    Almanac(AlmanacQueryMsg),
    AccessControl(AccessControlQueryMsg),
}

Messages from AlmanacQueryMsg gets concatenated with AccessControlQueryMsg

Copy link
Contributor

@jrriehl jrriehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MissingNO57 MissingNO57 merged commit 5f570a1 into main Apr 28, 2025
3 checks passed
@MissingNO57 MissingNO57 deleted the feature/untagged_nested_messages branch April 28, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants