Skip to content

Running the build command for the production-ready build for cw-20 and not only ends an error #821

@vladimir-trifonov

Description

@vladimir-trifonov

Running the build command for the production-ready build for cw-20 and not only ends with the error:

Building contract in /code ...
   Compiling cw20-base v0.15.1 (/code)
error[E0277]: the trait bound `QueryMsg: QueryResponses` is not satisfied
  --> src/bin/schema.rs:6:5
   |
6  | /     write_api! {
7  | |         instantiate: InstantiateMsg,
8  | |         execute: ExecuteMsg,
9  | |         query: QueryMsg,
10 | |     }
   | |_____^ the trait `QueryResponses` is not implemented for `QueryMsg`
   |
   = note: this error originates in the macro `write_api` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `cw20-base` due to previous error

rustc 1.64.0 (a55dd71d5 2022-09-19)

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