diff --git a/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json b/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json index d77050b43..ca05753e2 100644 --- a/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json +++ b/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json @@ -547,10 +547,10 @@ { "type": "object", "required": [ - "pending_proposal_id_for_approval_proposal_id" + "pre_propose_approval_id_for_approver_proposal_id" ], "properties": { - "pending_proposal_id_for_approval_proposal_id": { + "pre_propose_approval_id_for_approver_proposal_id": { "type": "object", "required": [ "id" diff --git a/contracts/pre-propose/dao-pre-propose-approver/src/contract.rs b/contracts/pre-propose/dao-pre-propose-approver/src/contract.rs index 764978f26..cc59550c1 100644 --- a/contracts/pre-propose/dao-pre-propose-approver/src/contract.rs +++ b/contracts/pre-propose/dao-pre-propose-approver/src/contract.rs @@ -188,7 +188,7 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { QueryExt::PreProposeApprovalContract {} => { to_binary(&PRE_PROPOSE_APPROVAL_CONTRACT.load(deps.storage)?) } - QueryExt::PendingProposalIdForApprovalProposalId { id } => { + QueryExt::PreProposeApprovalIdForApproverProposalId { id } => { to_binary(&PROPOSAL_ID_TO_PRE_PROPOSE_ID.may_load(deps.storage, id)?) } }, diff --git a/contracts/pre-propose/dao-pre-propose-approver/src/msg.rs b/contracts/pre-propose/dao-pre-propose-approver/src/msg.rs index e535dc9f2..26beab709 100644 --- a/contracts/pre-propose/dao-pre-propose-approver/src/msg.rs +++ b/contracts/pre-propose/dao-pre-propose-approver/src/msg.rs @@ -16,7 +16,7 @@ pub enum QueryExt { #[returns(cosmwasm_std::Addr)] PreProposeApprovalContract {}, #[returns(Option)] - PendingProposalIdForApprovalProposalId { id: u64 }, + PreProposeApprovalIdForApproverProposalId { id: u64 }, } pub type BaseInstantiateMsg = InstantiateBase; diff --git a/contracts/pre-propose/dao-pre-propose-approver/src/tests.rs b/contracts/pre-propose/dao-pre-propose-approver/src/tests.rs index ca71fdcce..6cf838c23 100644 --- a/contracts/pre-propose/dao-pre-propose-approver/src/tests.rs +++ b/contracts/pre-propose/dao-pre-propose-approver/src/tests.rs @@ -1258,7 +1258,7 @@ fn test_propose_open_proposal_submission() { .query_wasm_smart( pre_propose_approver.clone(), &ApproverQueryMsg::QueryExtension { - msg: ApproverQueryExt::PendingProposalIdForApprovalProposalId { + msg: ApproverQueryExt::PreProposeApprovalIdForApproverProposalId { id: approver_prop_id, }, },