Skip to content

Commit 1c2ee39

Browse files
committed
Provide more info for transfer destination callback
1 parent 04ce6f2 commit 1c2ee39

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/std/src/ibc/callbacks.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,16 @@ pub struct IbcDestinationCallbackMsg {
196196
///
197197
/// This is always empty on chains using CosmWasm < 3.0
198198
#[serde(default)]
199-
pub transfer: Option<TransferCallback>,
199+
pub transfer: Option<IbcTransferCallback>,
200200
}
201201

202202
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
203-
pub struct TransferCallback {
204-
/// The address of the contract that received the callback.
203+
pub struct IbcTransferCallback {
204+
/// Address of the sender of the transfer.
205205
/// Note that this is *not* a valid address on the destination chain.
206206
pub sender: String,
207-
/// Receiver of the transfer.
207+
/// Address of the receiver of the transfer.
208+
/// Since this is on the destination chain, this is a valid address.
208209
pub receiver: Addr,
209210
/// The funds that were transferred.
210211
///

0 commit comments

Comments
 (0)