Skip to content

Commit

Permalink
PR comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Oct 1, 2022
1 parent ef330cf commit e9542d3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 71 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion contracts/callback-capturer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ serde = { version = "1.0.103", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.23" }

[dev-dependencies]
anyhow = "1"
assert_matches = "1"
derivative = "2"
14 changes: 0 additions & 14 deletions contracts/callback-capturer/NOTICE

This file was deleted.

44 changes: 0 additions & 44 deletions contracts/callback-capturer/README.md

This file was deleted.

9 changes: 4 additions & 5 deletions contracts/simple-ica-controller/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub fn instantiate(
info: MessageInfo,
_msg: InstantiateMsg,
) -> StdResult<Response> {
// we store the reflect_id for creating accounts later
let cfg = Config { admin: info.sender };
CONFIG.save(deps.storage, &cfg)?;

Expand All @@ -46,9 +45,9 @@ pub fn execute(deps: DepsMut, env: Env, info: MessageInfo, msg: ExecuteMsg) -> S
callback_id,
} => execute_ibc_query(deps, env, info, channel_id, msgs, callback_id),
ExecuteMsg::SendFunds {
ica_channel_id: reflect_channel_id,
ica_channel_id,
transfer_channel_id,
} => execute_send_funds(deps, env, info, reflect_channel_id, transfer_channel_id),
} => execute_send_funds(deps, env, info, ica_channel_id, transfer_channel_id),
}
}

Expand Down Expand Up @@ -164,7 +163,7 @@ pub fn execute_send_funds(
deps: DepsMut,
env: Env,
mut info: MessageInfo,
reflect_channel_id: String,
ica_channel_id: String,
transfer_channel_id: String,
) -> StdResult<Response> {
// intentionally no auth check
Expand All @@ -184,7 +183,7 @@ pub fn execute_send_funds(
}

// load remote account
let data = ACCOUNTS.load(deps.storage, &reflect_channel_id)?;
let data = ACCOUNTS.load(deps.storage, &ica_channel_id)?;
let remote_addr = match data.remote_addr {
Some(addr) => addr,
None => {
Expand Down
1 change: 1 addition & 0 deletions contracts/simple-ica-controller/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ fn acknowledge_dispatch(
// Send IBC packet ack message to another contract
let res = res
.add_attribute("callback_id", &id)
// In production, you will want to think about gas limits for this callback.
.add_message(ReceiveIbcResponseMsg { id, msg }.into_cosmos_msg(sender)?);
Ok(res)
}
Expand Down

0 comments on commit e9542d3

Please sign in to comment.