Skip to content

Commit

Permalink
Update osmosis-std imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Jul 31, 2023
1 parent b6cc864 commit fca752d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file modified artifacts/cw_gov_card.wasm
Binary file not shown.
7 changes: 4 additions & 3 deletions contracts/cw-card-issuer/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ fn post_bribe() -> anyhow::Result<()> {

let mut sender_binding = tube.sender.borrow_mut();

let deposit_params = gov.query_params(&QueryParamsRequest {
let deposit_params = gov.query_params(&osmosis_std::types::cosmos::gov::v1beta1::QueryParamsRequest {
params_type: "deposit".to_string(),
})?;

Expand All @@ -324,11 +324,12 @@ fn post_bribe() -> anyhow::Result<()> {
coins(10_000_000, ISSUE_DENOM)
,
proposer.address(),
false,
&proposer,
);

// query params
let params = gov.query_params(&QueryParamsRequest {
let params = gov.query_params(&osmosis_std::types::cosmos::gov::v1beta1::QueryParamsRequest {
params_type: "voting".to_string(),
})?;

Expand All @@ -351,7 +352,7 @@ coins(10_000_000, ISSUE_DENOM)
let mut app_binding = tube.app.borrow_mut();
let gov = Gov::new(&mut *app_binding);

let prop_query = gov.query_proposal(&QueryProposalRequest{
let prop_query = gov.query_proposal(&osmosis_std::types::cosmos::gov::v1beta1::QueryProposalRequest{
proposal_id: 1,
})?;

Expand Down
1 change: 1 addition & 0 deletions contracts/cw-gov-card/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ pub fn cast_vote(
let mut cfg = CONFIG.load(deps.storage)?;
ensure_eq!(info.sender, cfg.owner, ContractError::NotOwner);

// TODO: this does not work because the query is not allowlisted on-chain
// let prop = query_proposal(&deps.querier, proposal_id)?;
//
// ensure_eq!(prop.status, ProposalStatus::VotingPeriod as i32, ContractError::NotVotingPeriod(proposal_id));
Expand Down

0 comments on commit fca752d

Please sign in to comment.