Skip to content

Commit 30ad392

Browse files
committed
Fix IbcDestinationCallbackMsg docs
1 parent 2225a39 commit 30ad392

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/std/src/ibc/callbacks.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,8 @@ impl IbcTimeoutCallbackMsg {
179179
/// It is important to validate that the packet and acknowledgement are what you expect them to be.
180180
/// For example for a transfer message, the receiver is not necessarily the contract itself.
181181
///
182-
/// The callback is called after the packet was acknowledged on the destination chain, as follows:
183-
/// - If the acknowledgement is synchronous (i.e. returned immediately when the packet is received),
184-
/// the callback is called only if the acknowledgement was successful.
185-
/// - If the acknowledgement is asynchronous (i.e. written later using `WriteAcknowledgement`),
186-
/// the callback is called regardless of the success of the acknowledgement.
182+
/// The callback is called when the packet is being acknowledged on the destination chain.
183+
/// This happens for both synchronous and asynchronous acknowledgements.
187184
///
188185
/// Note that there are some prerequisites that need to be fulfilled to receive destination callbacks:
189186
/// - The contract must implement the `ibc_destination_callback` entrypoint.

0 commit comments

Comments
 (0)