We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi I wanted to use cw_multi for some governance tests, but can't implement an AcceptingModule as the Gov trait is not exposed.
cw-multi-test/src/gov.rs
Line 5 in 668243d
cw-multi-test/src/lib.rs
Line 16 in 668243d
use cosmwasm_schema::{schemars, serde}; use cosmwasm_std::{Binary, Empty, GovMsg}; use cw_multi_test::{gov::Gov, AppResponse, CosmosRouter, FailingModule, Module}; pub struct AcceptingModule; impl Gov for AcceptingModule {} impl Module for AcceptingModule { type ExecT = GovMsg; type QueryT = Empty; type SudoT = Empty; fn execute<ExecC, QueryC>( &self, _api: &dyn cosmwasm_std::Api, _storage: &mut dyn cosmwasm_std::Storage, _router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>, _block: &cosmwasm_std::BlockInfo, _sender: cosmwasm_std::Addr, _msg: Self::ExecT, ) -> anyhow::Result<crate::AppResponse> where ExecC: std::fmt::Debug + Clone + PartialEq + schemars::JsonSchema + serde::de::DeserializeOwned + 'static, QueryC: cosmwasm_std::CustomQuery + serde::de::DeserializeOwned + 'static, { Ok(AppResponse::default()) } fn sudo<ExecC, QueryC>( &self, _api: &dyn cosmwasm_std::Api, _storage: &mut dyn cosmwasm_std::Storage, _router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>, _block: &cosmwasm_std::BlockInfo, _msg: Self::SudoT, ) -> anyhow::Result<crate::AppResponse> where ExecC: std::fmt::Debug + Clone + PartialEq + schemars::JsonSchema + serde::de::DeserializeOwned + 'static, QueryC: cosmwasm_std::CustomQuery + serde::de::DeserializeOwned + 'static, { Ok(AppResponse::default()) } fn query( &self, _api: &dyn cosmwasm_std::Api, _storage: &dyn cosmwasm_std::Storage, _querier: &dyn cosmwasm_std::Querier, _block: &cosmwasm_std::BlockInfo, _request: Self::QueryT, ) -> anyhow::Result<cosmwasm_std::Binary> { Ok(Binary::default()) } }
And without it I can't add it:
The text was updated successfully, but these errors were encountered:
Hi @0xphilipp gov::Gov and staking::Distribution just got released in v0.16.5
Sorry, something went wrong.
Closing as implemented.
DariuszDepta
Successfully merging a pull request may close this issue.
Hi I wanted to use cw_multi for some governance tests, but can't implement an AcceptingModule as the Gov trait is not exposed.
cw-multi-test/src/gov.rs
Line 5 in 668243d
cw-multi-test/src/lib.rs
Line 16 in 668243d
And without it I can't add it:
![image](https://user-images.githubusercontent.com/9350951/212969340-eb2bff86-da3b-4e7f-9f09-a041026dce48.png)
The text was updated successfully, but these errors were encountered: