Skip to content

Commit

Permalink
fix(ucs01-relay-api): correctly cast data and ack
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang authored and aeryz committed Jun 5, 2024
1 parent 9c7219d commit 2ba8b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions cosmwasm/ucs01-relay-api/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ pub trait TransferProtocol {
&mut self,
ibc_packet: IbcPacketAckMsg,
) -> Result<IbcBasicResponse<Self::CustomMsg>, Self::Error> {
let packet = Self::Packet::try_from(ibc_packet.acknowledgement.data.clone())?;
let packet = Self::Packet::try_from(ibc_packet.original_packet.data.clone())?;
// https://github.com/cosmos/ibc-go/blob/5ca37ef6e56a98683cf2b3b1570619dc9b322977/modules/apps/transfer/ibc_module.go#L261
let ack: GenericAck = Self::Ack::try_from(ibc_packet.original_packet.data.clone())?.into();
let ack: GenericAck = Self::Ack::try_from(ibc_packet.acknowledgement.data.clone())?.into();
let memo: String = packet.extension().clone().into();

let (ack_msgs, ack_attr) =
Expand Down

0 comments on commit 2ba8b74

Please sign in to comment.