From 263e6db72df195668497400a77102e51e87cf159 Mon Sep 17 00:00:00 2001 From: Arnaud Mimart <33665250+amimart@users.noreply.github.com> Date: Mon, 20 Mar 2023 18:56:04 +0100 Subject: [PATCH] feat(law): add break stone exec signature --- contracts/cw-law-stone/src/contract.rs | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/contracts/cw-law-stone/src/contract.rs b/contracts/cw-law-stone/src/contract.rs index 7b320b91..4c2279c7 100644 --- a/contracts/cw-law-stone/src/contract.rs +++ b/contracts/cw-law-stone/src/contract.rs @@ -49,12 +49,26 @@ pub fn instantiate( #[cfg_attr(not(feature = "library"), entry_point)] pub fn execute( - _deps: DepsMut<'_>, - _env: Env, - _info: MessageInfo, - _msg: ExecuteMsg, + deps: DepsMut<'_>, + env: Env, + info: MessageInfo, + msg: ExecuteMsg, ) -> Result { - Err(NotImplemented {}) + match msg { + ExecuteMsg::BreakStone => execute::break_stone(deps, env, info), + } +} + +pub mod execute { + use super::*; + + pub fn break_stone( + _deps: DepsMut<'_>, + _env: Env, + _info: MessageInfo, + ) -> Result { + Err(NotImplemented {}) + } } #[cfg_attr(not(feature = "library"), entry_point)]