From ce6e5dcfc4f5bdc4afc66363f643bb26091f508e Mon Sep 17 00:00:00 2001 From: Gabriel Lopez Date: Mon, 11 Sep 2023 14:07:10 -0500 Subject: [PATCH] Fix proposal module msgs --- .../pre-propose/dao-pre-propose-approval-single/src/tests.rs | 1 + contracts/pre-propose/dao-pre-propose-approver/src/tests.rs | 2 ++ contracts/pre-propose/dao-pre-propose-multiple/src/tests.rs | 1 + contracts/pre-propose/dao-pre-propose-single/src/tests.rs | 1 + contracts/proposal/dao-proposal-condorcet/src/testing/suite.rs | 1 + .../proposal/dao-proposal-multiple/src/testing/do_votes.rs | 1 + contracts/proposal/dao-proposal-multiple/src/testing/queries.rs | 1 + contracts/proposal/dao-proposal-multiple/src/testing/tests.rs | 1 + contracts/proposal/dao-proposal-single/src/testing/do_votes.rs | 1 + contracts/proposal/dao-proposal-single/src/testing/queries.rs | 1 + 10 files changed, 11 insertions(+) diff --git a/contracts/pre-propose/dao-pre-propose-approval-single/src/tests.rs b/contracts/pre-propose/dao-pre-propose-approval-single/src/tests.rs index 2127cebf5..f96ae038b 100644 --- a/contracts/pre-propose/dao-pre-propose-approval-single/src/tests.rs +++ b/contracts/pre-propose/dao-pre-propose-approval-single/src/tests.rs @@ -140,6 +140,7 @@ fn setup_default_test( &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); 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 5aea7b2bc..b9b886c86 100644 --- a/contracts/pre-propose/dao-pre-propose-approver/src/tests.rs +++ b/contracts/pre-propose/dao-pre-propose-approver/src/tests.rs @@ -201,6 +201,7 @@ fn setup_default_test( &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); @@ -255,6 +256,7 @@ fn setup_default_test( &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); diff --git a/contracts/pre-propose/dao-pre-propose-multiple/src/tests.rs b/contracts/pre-propose/dao-pre-propose-multiple/src/tests.rs index e256a1f47..613b5a062 100644 --- a/contracts/pre-propose/dao-pre-propose-multiple/src/tests.rs +++ b/contracts/pre-propose/dao-pre-propose-multiple/src/tests.rs @@ -140,6 +140,7 @@ fn setup_default_test( &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); diff --git a/contracts/pre-propose/dao-pre-propose-single/src/tests.rs b/contracts/pre-propose/dao-pre-propose-single/src/tests.rs index 6a8b48e9f..595e2bc4d 100644 --- a/contracts/pre-propose/dao-pre-propose-single/src/tests.rs +++ b/contracts/pre-propose/dao-pre-propose-single/src/tests.rs @@ -138,6 +138,7 @@ fn setup_default_test( &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); diff --git a/contracts/proposal/dao-proposal-condorcet/src/testing/suite.rs b/contracts/proposal/dao-proposal-condorcet/src/testing/suite.rs index a9e7ac30a..da967a079 100644 --- a/contracts/proposal/dao-proposal-condorcet/src/testing/suite.rs +++ b/contracts/proposal/dao-proposal-condorcet/src/testing/suite.rs @@ -124,6 +124,7 @@ impl SuiteBuilder { &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); diff --git a/contracts/proposal/dao-proposal-multiple/src/testing/do_votes.rs b/contracts/proposal/dao-proposal-multiple/src/testing/do_votes.rs index 32eb43168..7cc2eecd9 100644 --- a/contracts/proposal/dao-proposal-multiple/src/testing/do_votes.rs +++ b/contracts/proposal/dao-proposal-multiple/src/testing/do_votes.rs @@ -141,6 +141,7 @@ where &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); diff --git a/contracts/proposal/dao-proposal-multiple/src/testing/queries.rs b/contracts/proposal/dao-proposal-multiple/src/testing/queries.rs index da528383d..c93d78e8e 100644 --- a/contracts/proposal/dao-proposal-multiple/src/testing/queries.rs +++ b/contracts/proposal/dao-proposal-multiple/src/testing/queries.rs @@ -52,6 +52,7 @@ pub fn query_multiple_proposal_module(app: &App, core_addr: &Addr) -> Addr { &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); diff --git a/contracts/proposal/dao-proposal-multiple/src/testing/tests.rs b/contracts/proposal/dao-proposal-multiple/src/testing/tests.rs index eaf69fcc8..73375278d 100644 --- a/contracts/proposal/dao-proposal-multiple/src/testing/tests.rs +++ b/contracts/proposal/dao-proposal-multiple/src/testing/tests.rs @@ -2372,6 +2372,7 @@ fn test_query_list_proposals() { &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); diff --git a/contracts/proposal/dao-proposal-single/src/testing/do_votes.rs b/contracts/proposal/dao-proposal-single/src/testing/do_votes.rs index ecd72e325..1c69c6fbe 100644 --- a/contracts/proposal/dao-proposal-single/src/testing/do_votes.rs +++ b/contracts/proposal/dao-proposal-single/src/testing/do_votes.rs @@ -139,6 +139,7 @@ where &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap(); diff --git a/contracts/proposal/dao-proposal-single/src/testing/queries.rs b/contracts/proposal/dao-proposal-single/src/testing/queries.rs index a246f1c64..20270c06a 100644 --- a/contracts/proposal/dao-proposal-single/src/testing/queries.rs +++ b/contracts/proposal/dao-proposal-single/src/testing/queries.rs @@ -142,6 +142,7 @@ pub(crate) fn query_single_proposal_module(app: &App, core_addr: &Addr) -> Addr &dao_interface::msg::QueryMsg::ProposalModules { start_after: None, limit: None, + include_disabled: Some(true), }, ) .unwrap();