Skip to content

Commit

Permalink
query fix in proposal contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek-1857 committed Aug 2, 2024
1 parent b5e7121 commit e69d06a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions contracts/dao-dao-core/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion contracts/proposal/dao-proposal-multiple/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult<Binary> {
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)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/proposal/dao-proposal-single/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult<Binary> {
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)
}
}
}
Expand Down

0 comments on commit e69d06a

Please sign in to comment.