From e012b67da3b275cc5327aa834184db85e69571da Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Wed, 8 May 2024 19:14:55 -0500 Subject: [PATCH] feat(ucs01-relay): return no ack --- cosmwasm/ucs01-relay/src/protocol.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/cosmwasm/ucs01-relay/src/protocol.rs b/cosmwasm/ucs01-relay/src/protocol.rs index 278652a9d9..63111f6aba 100644 --- a/cosmwasm/ucs01-relay/src/protocol.rs +++ b/cosmwasm/ucs01-relay/src/protocol.rs @@ -1,7 +1,6 @@ use cosmwasm_std::{ - wasm_execute, Addr, BankMsg, Coin, CosmosMsg, Decimal, DepsMut, DistributionMsg, Env, - HexBinary, IbcBasicResponse, IbcEndpoint, IbcOrder, IbcReceiveResponse, MessageInfo, Uint128, - Uint512, + wasm_execute, Addr, BankMsg, Coin, CosmosMsg, DepsMut, Env, HexBinary, IbcBasicResponse, + IbcEndpoint, IbcOrder, IbcReceiveResponse, MessageInfo, Uint128, Uint512, }; use sha2::{Digest, Sha256}; use token_factory_api::TokenFactoryMsg; @@ -566,8 +565,7 @@ impl<'a> TransferProtocol for Ics20Protocol<'a> { .iter() .map(|sub_msg| -> CosmosMsg { sub_msg.msg.to_owned() }); - // TODO: Once updated to cosmwasm 2.0, return nil ack - IbcReceiveResponse::new() + IbcReceiveResponse::without_ack() .add_messages(msgs) .add_messages(forward_response_messages) .add_events(forward_response.events) @@ -657,8 +655,7 @@ impl<'a> TransferProtocol for Ics20Protocol<'a> { .iter() .map(|sub_msg| -> CosmosMsg { sub_msg.msg.to_owned() }); - // TODO: Once updated to cosmwasm 2.1, defer to async ack - IbcReceiveResponse::new() + IbcReceiveResponse::without_ack() .add_messages(transfer_messages) .add_events(transfer.events) } @@ -893,7 +890,7 @@ impl<'a> TransferProtocol for Ucs01Protocol<'a> { .map(|sub_msg| -> CosmosMsg { sub_msg.msg.to_owned() }); // TODO: Once updated to cosmwasm 2.0, return nil ack - IbcReceiveResponse::new() + IbcReceiveResponse::without_ack() .add_messages(msgs) .add_messages(forward_response_messages) .add_events(forward_response.events) @@ -984,7 +981,7 @@ impl<'a> TransferProtocol for Ucs01Protocol<'a> { .map(|sub_msg| -> CosmosMsg { sub_msg.msg.to_owned() }); // TODO: Once updated to cosmwasm 2.1, defer to async ack - IbcReceiveResponse::new() + IbcReceiveResponse::without_ack() .add_messages(transfer_messages) .add_events(transfer.events) }