Skip to content

Commit

Permalink
chore: fix send RegisterDenom to the current contract
Browse files Browse the repository at this point in the history
  • Loading branch information
meomeocoj committed Nov 29, 2024
1 parent c8353be commit c304839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/cw-ics20-latest/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ fn handle_ibc_packet_receive_native_remote_chain(
// push a register denom msg to the contract
cosmos_msgs.push(
wasm_execute(
config.token_factory_addr.to_string(),
env.contract.address.to_string(),
&ExecuteMsg::RegisterDenom(RegisterDenomMsg {
subdenom: denom.into(),
metadata: None,
Expand Down
2 changes: 1 addition & 1 deletion contracts/cw-ics20-latest/src/testing/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ fn send_native_from_remote_mapping_not_found() {
assert_eq!(
res.messages[0].msg,
wasm_execute(
config.token_factory_addr.clone(),
"cosmos2contract",
&ExecuteMsg::RegisterDenom(RegisterDenomMsg {
subdenom: String::from("cw20:token-addr"),
metadata: None
Expand Down

0 comments on commit c304839

Please sign in to comment.