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 Oct 16, 2023
1 parent cfb56a0 commit 359b792
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/std/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,27 +694,6 @@ impl<T> IbcReceiveResponse<T> {
}

Check warning on line 694 in packages/std/src/ibc.rs

View check run for this annotation

Codecov / codecov/patch

packages/std/src/ibc.rs#L688-L694

Added lines #L688 - L694 were not covered by tests
}

/// Set the acknowledgement for this response.
///
/// If you provide `None`, the acknowledgement is asynchronous and you can provide it later
/// using [`IbcMsg::WriteAcknowledgement`].
///
/// ## 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)
/// }
/// _ = make_response_with_ack();
/// ```
pub fn set_ack(mut self, ack: impl Into<Option<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 359b792

Please sign in to comment.