Skip to content

Commit

Permalink
Remove set_ack function from IbcReceiveResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Nov 8, 2023
1 parent 9f67685 commit cd5d61c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/std/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,23 +646,6 @@ impl<T> IbcReceiveResponse<T> {
}
}

/// Set the acknowledgement for this response.
///
/// ## Examples
///
/// ```
/// use cosmwasm_std::{StdAck, IbcReceiveResponse};
///
/// fn make_response_with_ack() -> IbcReceiveResponse {
/// let ack = StdAck::success(b"\x01"); // 0x01 is a FungibleTokenPacketSuccess from ICS-20.
/// IbcReceiveResponse::new(ack)
/// }
/// ```
pub fn set_ack(mut self, ack: impl Into<Binary>) -> Self {
self.acknowledgement = ack.into();
self
}

/// Add an attribute included in the main `wasm` event.
pub fn add_attribute(mut self, key: impl Into<String>, value: impl Into<String>) -> Self {
self.attributes.push(Attribute::new(key, value));
Expand Down

0 comments on commit cd5d61c

Please sign in to comment.