Repository: DA0-DA0/dao-contracts
Pull request #268 (2022-04-26 02:15:18)

Rename `UpdateGovernanceModules` -> `UpdateProposalModules`.
Last renaming we'll need. 🤞


Patch:
diff --git a/contracts/cw-core/src/contract.rs b/contracts/cw-core/src/contract.rs
index 87e1eade..efb2025c 100644
--- a/contracts/cw-core/src/contract.rs
+++ b/contracts/cw-core/src/contract.rs
@@ -138,7 +138,7 @@ pub fn execute(
         ExecuteMsg::UpdateVotingModule { module } => {
             execute_update_voting_module(env, info.sender, module)
         }
-        ExecuteMsg::UpdateGovernanceModules { to_add, to_remove } => {
+        ExecuteMsg::UpdateProposalModules { to_add, to_remove } => {
             execute_update_governance_modules(deps, env, info.sender, to_add, to_remove)
         }
         ExecuteMsg::SetItem { key, addr } => execute_set_item(deps, env, info.sender, key, addr),
diff --git a/contracts/cw-core/src/msg.rs b/contracts/cw-core/src/msg.rs
index 65261481..818e4ea3 100644
--- a/contracts/cw-core/src/msg.rs
+++ b/contracts/cw-core/src/msg.rs
@@ -85,16 +85,16 @@ pub enum ExecuteMsg {
     /// messages in the hook in order.
     ExecuteProposalHook { msgs: Vec<CosmosMsg<Empty>> },
     /// Callable by the core contract. Replaces the current
-    /// governance contract config with the provided config.
+    /// core contract config with the provided config.
     UpdateConfig { config: Config },
     /// Callable by the core contract. Replaces the current
-    /// voting module with a new one instantiated by the governance
+    /// voting module with a new one instantiated by the core
     /// contract.
     UpdateVotingModule { module: ModuleInstantiateInfo },
     /// Updates the core contract's proposal modules. Module
     /// instantiate info in `to_add` is used to create new modules and
     /// install them.
-    UpdateGovernanceModules {
+    UpdateProposalModules {
         to_add: Vec<ModuleInstantiateInfo>,
         to_remove: Vec<String>,
     },


Test patch:
diff --git a/contracts/cw-core/src/tests.rs b/contracts/cw-core/src/tests.rs
index c0dfe5d1..64a4e0b9 100644
--- a/contracts/cw-core/src/tests.rs
+++ b/contracts/cw-core/src/tests.rs
@@ -387,7 +387,7 @@ fn test_swap_governance(swaps: Vec<(u64, u64)>) {
                 msgs: vec![WasmMsg::Execute {
                     contract_addr: gov_addr.to_string(),
                     funds: vec![],
-                    msg: to_binary(&ExecuteMsg::UpdateGovernanceModules { to_add, to_remove })
+                    msg: to_binary(&ExecuteMsg::UpdateProposalModules { to_add, to_remove })
                         .unwrap(),
                 }
                 .into()],
@@ -587,7 +587,7 @@ fn test_permissions() {
     test_unauthorized(
         &mut app,
         gov_addr.clone(),
-        ExecuteMsg::UpdateGovernanceModules {
+        ExecuteMsg::UpdateProposalModules {
             to_add: vec![],
             to_remove: vec![],
         },
diff --git a/contracts/cw-proposal-single/src/tests.rs b/contracts/cw-proposal-single/src/tests.rs
index 110c6485..9b37e383 100644
--- a/contracts/cw-proposal-single/src/tests.rs
+++ b/contracts/cw-proposal-single/src/tests.rs
@@ -1268,7 +1268,7 @@ fn test_close_open_proposal() {
 
 #[test]
 fn test_zero_deposit() {
-    do_test_votes(
+    do_test_votes_cw20_balances(
         vec![TestVote {
             voter: "ekez".to_string(),
             position: Vote::Yes,