From 5a2375b38f68f21a006b3400f805bd03c0da9cc0 Mon Sep 17 00:00:00 2001 From: peartes Date: Tue, 25 Jun 2024 20:07:52 +0100 Subject: [PATCH] chore: renaming msg exec --- contracts/treasury/src/contract.rs | 4 ++-- contracts/treasury/src/msg.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/treasury/src/contract.rs b/contracts/treasury/src/contract.rs index 3230646..10b7090 100644 --- a/contracts/treasury/src/contract.rs +++ b/contracts/treasury/src/contract.rs @@ -43,10 +43,10 @@ pub fn execute( #[entry_point] pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult { match msg { - QueryMsg::GrantConfigByTypeURL { msg_type_url } => to_binary( + QueryMsg::GrantConfigByTypeUrl { msg_type_url } => to_binary( &query::grant_config_by_type_url(deps.storage, msg_type_url)?, ), - QueryMsg::GrantConfigTypeURLs {} => { + QueryMsg::GrantConfigTypeUrls {} => { to_binary(&query::grant_config_type_urls(deps.storage)?) } } diff --git a/contracts/treasury/src/msg.rs b/contracts/treasury/src/msg.rs index 52c835f..9b2b120 100644 --- a/contracts/treasury/src/msg.rs +++ b/contracts/treasury/src/msg.rs @@ -33,8 +33,8 @@ pub enum ExecuteMsg { pub enum QueryMsg { /// Query the grant config by type url #[returns(Binary)] - GrantConfigByTypeURL { msg_type_url: String }, + GrantConfigByTypeUrl { msg_type_url: String }, #[returns(Binary)] - GrantConfigTypeURLs {}, + GrantConfigTypeUrls {}, }