Skip to content

Commit 6b2b2df

Browse files
committed
Fix doctests
1 parent 67a68fd commit 6b2b2df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/std/src/coins.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ impl Coins {
146146
/// # Examples
147147
///
148148
/// ```rust
149-
/// use cosmwasm_std::{Coin, Coins, coin};
149+
/// use cosmwasm_std::{Coin, Coins, coin, Uint256};
150150
///
151151
/// let coins: Coins = [coin(100, "uatom")].try_into().unwrap();
152-
/// assert_eq!(coins.contains_only("uatom").unwrap().u128(), 100);
152+
/// assert_eq!(coins.contains_only("uatom").unwrap(), Uint256::new(100));
153153
/// assert_eq!(coins.contains_only("uluna"), None);
154154
/// ```
155155
///
@@ -214,7 +214,7 @@ impl Coins {
214214
/// # Examples
215215
///
216216
/// ```
217-
/// # use cosmwasm_std::{coin, Coin, Coins, Uint128};
217+
/// # use cosmwasm_std::{coin, Coin, Coins, Uint256};
218218
/// let mut coins = Coins::default();
219219
/// coins.add(coin(500, "uluna")).unwrap();
220220
/// coins.add(coin(1000, "uatom")).unwrap();

0 commit comments

Comments
 (0)