diff --git a/contracts/dao-dao-core/src/tests.rs b/contracts/dao-dao-core/src/tests.rs index 5354f67..f078338 100644 --- a/contracts/dao-dao-core/src/tests.rs +++ b/contracts/dao-dao-core/src/tests.rs @@ -225,18 +225,18 @@ // } // #[test] -// // #[should_panic(expected = "Execution would result in no proposal modules being active.")] +// #[should_panic(expected = "Execution would result in no proposal modules being active.")] // fn test_instantiate_with_zero_gov_modules() { // test_instantiate_with_n_gov_modules(0) // } -// // #[test] -// // fn test_valid_instantiate() { -// // let module_counts = [1, 2, 200]; -// // for count in module_counts { -// // test_instantiate_with_n_gov_modules(count) -// // } -// // } +// #[test] +// fn test_valid_instantiate() { +// let module_counts = [1]; +// for count in module_counts { +// test_instantiate_with_n_gov_modules(count) +// } +// } // // #[test] // // #[should_panic(expected = "Error parsing into type cw20_base::msg::InstantiateMsg: Invalid type")] diff --git a/contracts/proposal/dao-proposal-multiple/src/contract.rs b/contracts/proposal/dao-proposal-multiple/src/contract.rs index 8ea5d7c..7b2f745 100644 --- a/contracts/proposal/dao-proposal-multiple/src/contract.rs +++ b/contracts/proposal/dao-proposal-multiple/src/contract.rs @@ -932,7 +932,7 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { QueryMsg::GetVote { proposal_id, auth } => { let query_auth = CONFIG.load(deps.storage)?.query_auth; let voter = authenticate(deps, *auth, query_auth)?; - to_binary(&query_vote(deps, proposal_id, voter)?) + query_vote(deps, proposal_id, voter) } } } diff --git a/contracts/proposal/dao-proposal-single/src/contract.rs b/contracts/proposal/dao-proposal-single/src/contract.rs index f69efeb..7f394f0 100644 --- a/contracts/proposal/dao-proposal-single/src/contract.rs +++ b/contracts/proposal/dao-proposal-single/src/contract.rs @@ -919,7 +919,7 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { QueryMsg::GetVote { proposal_id, auth } => { let query_auth = CONFIG.load(deps.storage)?.query_auth; let voter = authenticate(deps, *auth, query_auth)?; - to_binary(&query_vote(deps, proposal_id, voter)?) + query_vote(deps, proposal_id, voter) } } }