Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cosmwasm_schema: macro generator ignores generics #1424

Closed
ueco-jb opened this issue Sep 15, 2022 · 0 comments · Fixed by #1429
Closed

cosmwasm_schema: macro generator ignores generics #1424

ueco-jb opened this issue Sep 15, 2022 · 0 comments · Fixed by #1429
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ueco-jb
Copy link
Contributor

ueco-jb commented Sep 15, 2022

When trying to generate schema using new macros, it failes to account for generic parameters.

error[E0107]: missing generics for enum `msg::QueryMsg`
  --> contracts/cw721-base/src/msg.rs:76:10
   |
76 | pub enum QueryMsg<Q> {
   |          ^^^^^^^^ expected 1 generic argument
   |
note: enum defined here, with 1 generic parameter: `Q`
  --> contracts/cw721-base/src/msg.rs:76:10
   |
76 | pub enum QueryMsg<Q> {
   |          ^^^^^^^^ -
help: add missing generic argument
   |
76 | pub enum QueryMsg<Q><Q> {
   |          ~~~~~~~~~~~

PR from example: public-awesome/cw-nfts#81

@ueco-jb ueco-jb added the bug Something isn't working label Sep 15, 2022
@uint uint assigned uint and unassigned uint Sep 15, 2022
@webmaster128 webmaster128 added this to the 1.1.2 milestone Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants