Skip to content

QueryResponses full path not used in cosmwasm_schema::generate_api!  #1527

Closed
@chris-ricketts

Description

@chris-ricketts

The full module path (starting from crate root) is not used when specifying the QueryResponses type in the cosmwasm_schema::generate_api! macro.

This can result in the following error when using it without cosmwasm_schema::write_api!:

error[E0433]: failed to resolve: use of undeclared type `QueryResponses`
  --> contracts/mock-core/mock-core.rs:39:5
   |
39 | /     cosmwasm_schema::generate_api! {
40 | |         instantiate: InstantiateMsg,
41 | |         execute: ExecuteMsg,
42 | |         query: QueryMsg,
43 | |     }
   | |_____^ use of undeclared type `QueryResponses`
   |
   = note: this error originates in the macro `cosmwasm_schema::generate_api` (in Nightly builds, run with -Z macro-backtrace for more inf
o)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions