Skip to content

Commit

Permalink
fix(ucs01): wrong attr for error ack and yield success ack
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Sep 7, 2023
1 parent 58c478b commit a20d9e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cosmwasm/ucs01-relay-api/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ pub trait TransferProtocol {
// https://github.com/cosmos/ibc-go/blob/5ca37ef6e56a98683cf2b3b1570619dc9b322977/modules/apps/transfer/ibc_module.go#L261
let ack = Into::<GenericAck>::into(Self::Ack::try_from(raw_ack.clone().into())?);
let (ack_msgs, ack_attr) = match ack {
Ok(_) => (
Ok(value) => (
self.send_tokens_success(packet.sender(), packet.receiver(), packet.tokens())?,
attr("success", "true"),
attr("success", value.to_string()),
),
Err(error) => (
self.send_tokens_failure(packet.sender(), packet.receiver(), packet.tokens())?,
attr("acknowledgement", error.to_string()),
attr("error", error.to_string()),
),
};
Ok(IbcBasicResponse::new()
Expand Down

0 comments on commit a20d9e6

Please sign in to comment.