diff --git a/framework/packages/abstract-client/src/interchain/remote_application.rs b/framework/packages/abstract-client/src/interchain/remote_application.rs index 40c7379df..16ccbdea0 100644 --- a/framework/packages/abstract-client/src/interchain/remote_application.rs +++ b/framework/packages/abstract-client/src/interchain/remote_application.rs @@ -49,19 +49,24 @@ impl< execute: &M::ExecuteMsg, funds: Vec, ) -> AbstractClientResult> { - self.remote_account.ibc_client_execute( - ibc_client::ExecuteMsg::RemoteAction { - host_chain: self.remote_account.host_chain_id(), - action: ibc_host::HostAction::Dispatch { - account_msgs: vec![account::ExecuteMsg::ExecuteOnModule { - module_id: M::module_id().to_owned(), - exec_msg: to_json_binary(execute).map_err(AbstractInterfaceError::from)?, - funds, - }], - }, - }, - vec![], - ) + self.remote_account + .execute_on_account(vec![account::ExecuteMsg::ExecuteOnModule { + module_id: M::module_id().to_owned(), + exec_msg: to_json_binary(execute).map_err(AbstractInterfaceError::from)?, + funds, + }]) + } + + /// Execute admin message on application + pub fn admin_execute( + &self, + execute: &M::ExecuteMsg, + ) -> AbstractClientResult> { + self.remote_account + .execute_on_account(vec![account::ExecuteMsg::AdminExecuteOnModule { + module_id: M::module_id().to_owned(), + msg: to_json_binary(execute).map_err(AbstractInterfaceError::from)?, + }]) } /// Queries request on application