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

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

Closed
vladimir-trifonov opened this issue Oct 3, 2022 · 1 comment

Comments

@vladimir-trifonov
Copy link

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)

@vladimir-trifonov
Copy link
Author

It looke like the issue was with:

docker run --rm -v "$(pwd)":/code \
  --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
  --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
  cosmwasm/rust-optimizer-arm64:0.12.6

but running instead:

docker run --rm -v "$(pwd)":/code \
 --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
 --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
 cosmwasm/rust-optimizer-arm64:0.12.8

i.e. using rust-optimizer-arm64:0.12.8 intead of rust-optimizer-arm64:0.12.6 fixes it.

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

No branches or pull requests

1 participant