Skip to content

Commit 254df54

Browse files
committed
Set all fees for PayPacketFee example
1 parent 34a51d1 commit 254df54

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/std/src/ibc.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,15 @@ pub enum IbcMsg {
8585
/// [`IbcMsg::SendPacket`] or [`IbcMsg::Transfer`].
8686
///
8787
/// ```rust
88-
/// # use cosmwasm_std::{IbcMsg, IbcEndpoint, IbcFee, IbcTimeout, Coin, CosmosMsg, Response, Timestamp};
88+
/// # use cosmwasm_std::{IbcMsg, IbcEndpoint, IbcFee, IbcTimeout, Coin, coins, CosmosMsg, Response, Timestamp};
8989
///
9090
/// let incentivize = IbcMsg::PayPacketFee {
9191
/// port_id: "transfer".to_string(),
9292
/// channel_id: "source-channel".to_string(),
9393
/// fee: IbcFee {
94-
/// recv_fee: vec![Coin::new(100u32, "token")],
95-
/// ..IbcFee::default()
94+
/// recv_fee: coins(100, "token"),
95+
/// ack_fee: coins(201, "token"),
96+
/// timeout_fee: coins(200, "token"),
9697
/// },
9798
/// relayers: vec![],
9899
/// };

0 commit comments

Comments
 (0)