You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0593]: function is expected to take 3 arguments, but it takes 2 arguments
--> contracts/cw1-whitelist/src/lib.rs:9:1
|
9 | cosmwasm_std::create_entry_points!(contract);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected function that takes 3 arguments
|
::: contracts/cw1-whitelist/src/contract.rs:125:1
|
125 | / pub fn query<S: Storage, A: Api, Q: Querier>(
126 | | deps: &Extern<S, A, Q>,
127 | | msg: QueryMsg,
128 | | ) -> StdResult<Binary> {
... |
132 | | }
133 | | }
| |_- takes 2 arguments
|
= note: required for the cast to the object type `dyn for<'r> std::ops::Fn(&'r cosmwasm_std::Extern<cosmwasm_std::ExternalStorage, cosmwasm_std::ExternalApi, cosmwasm_std::ExternalQuerier>, cosmwasm_std::Env, _) -> std::result::Result<cosmwasm_std::Binary, _>`
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
For more information about this error, try `rustc --explain E0593`.
error: could not compile `cw1-whitelist`.
To learn more, run the command again with --verbose.
Traceback (most recent call last):
File "/usr/local/bin/optimize_workspace.py", line 45, in <module>
subprocess.check_call(cmd, cwd=contract)
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cargo', '-Z=unstable-options', 'build', '--release', '--target=wasm32-unknown-unknown', '--locked', '--out-dir=/tmp/contracts/cw1-whitelist']' returned non-zero exit status 101.
On current
master
branch I tried to build withand got
My versions
The text was updated successfully, but these errors were encountered: