Skip to content

Commit 99afad0

Browse files
authored
Merge branch 'main' into querier-wrapper-in-helpers
2 parents 06f126d + 1bf0b3c commit 99afad0

File tree

16 files changed

+1401
-614
lines changed

16 files changed

+1401
-614
lines changed

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/cw3-fixed-multisig/src/contract.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ use cosmwasm_std::{
99

1010
use cw2::set_contract_version;
1111
use cw3::{
12-
ProposalListResponse, ProposalResponse, Status, Vote, VoteInfo, VoteListResponse, VoteResponse,
13-
VoterDetail, VoterListResponse, VoterResponse,
12+
Ballot, Proposal, ProposalListResponse, ProposalResponse, Status, Vote, VoteInfo,
13+
VoteListResponse, VoteResponse, VoterDetail, VoterListResponse, VoterResponse, Votes,
1414
};
1515
use cw_storage_plus::Bound;
1616
use cw_utils::{Expiration, ThresholdResponse};
1717

1818
use crate::error::ContractError;
1919
use crate::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};
20-
use crate::state::{next_id, Ballot, Config, Proposal, Votes, BALLOTS, CONFIG, PROPOSALS, VOTERS};
20+
use crate::state::{next_id, Config, BALLOTS, CONFIG, PROPOSALS, VOTERS};
2121

2222
// version info for migration info
2323
const CONTRACT_NAME: &str = "crates.io:cw3-fixed-multisig";
@@ -112,6 +112,8 @@ pub fn execute_propose(
112112
votes: Votes::yes(vote_power),
113113
threshold: cfg.threshold,
114114
total_weight: cfg.total_weight,
115+
proposer: info.sender.clone(),
116+
deposit: None,
115117
};
116118
prop.update_status(&env.block);
117119
let id = next_id(deps.storage)?;
@@ -276,6 +278,8 @@ fn query_proposal(deps: Deps, env: Env, id: u64) -> StdResult<ProposalResponse>
276278
msgs: prop.msgs,
277279
status,
278280
expires: prop.expires,
281+
deposit: prop.deposit,
282+
proposer: prop.proposer,
279283
threshold,
280284
})
281285
}
@@ -331,6 +335,8 @@ fn map_proposal(
331335
description: prop.description,
332336
msgs: prop.msgs,
333337
status,
338+
deposit: prop.deposit,
339+
proposer: prop.proposer,
334340
expires: prop.expires,
335341
threshold,
336342
}

0 commit comments

Comments
 (0)