From 4c63bb3ec50f3e60a6a54a398111931f49402d26 Mon Sep 17 00:00:00 2001 From: Kayanski Date: Wed, 15 May 2024 12:18:52 +0000 Subject: [PATCH] Added 2 TODOS for the SDK --- contracts/client/src/handlers/execute.rs | 2 +- contracts/server/src/handlers/execute.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contracts/client/src/handlers/execute.rs b/contracts/client/src/handlers/execute.rs index d88075f..cf1b33a 100644 --- a/contracts/client/src/handlers/execute.rs +++ b/contracts/client/src/handlers/execute.rs @@ -71,6 +71,7 @@ fn receive_msg(deps: DepsMut, info: MessageInfo, msg: Message, app: App) -> Clie // TODO: remove print println!("Received message: {:?}", msg); // check that the message sender is the server... this requires the server to be the proper version + // TODO, should we have a function that is able to check against a module ID directly in the SDK ? let sender_module = app .module_registry(deps.as_ref())? .module_info(info.sender) @@ -88,7 +89,6 @@ fn receive_msg(deps: DepsMut, info: MessageInfo, msg: Message, app: App) -> Clie let len = RECEIVED .keys(deps.storage, None, None, Order::Ascending) .count(); - println!("Received length: {:?}", len); Ok(app diff --git a/contracts/server/src/handlers/execute.rs b/contracts/server/src/handlers/execute.rs index 2629ca1..f889995 100644 --- a/contracts/server/src/handlers/execute.rs +++ b/contracts/server/src/handlers/execute.rs @@ -127,7 +127,9 @@ pub(crate) fn route_msg( println!("ibc_msg: {:?}", ibc_msg); // TODO: suggested syntax - // let ibc_msg = app.ibc_client().module_ibc_action(chain, module,msg, callback) + // let ibc_msg = app.ibc_client().module_ibc_action(chain, target_module, msg, callback) + // TODO: We could additionally have something like to avoid having to create the module info object + // let ibc_msg = app.ibc_client().self_module_ibc_action(chain, msg, callback) let ibc_client_addr = app .module_registry(deps.as_ref())?