Skip to content

Commit

Permalink
Added 2 TODOS for the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayanski committed May 15, 2024
1 parent b5c2880 commit 4c63bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/client/src/handlers/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion contracts/server/src/handlers/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?
Expand Down

0 comments on commit 4c63bb3

Please sign in to comment.