Skip to content

Commit 55426eb

Browse files
committed
Remove usage of mock_info from docs
1 parent fa77163 commit 55426eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/std/src/coin.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ impl fmt::Display for Coin {
6363
///
6464
/// ```
6565
/// # use cosmwasm_std::{coins, BankMsg, CosmosMsg, Response, SubMsg};
66-
/// # use cosmwasm_std::testing::{mock_env, mock_info};
66+
/// # use cosmwasm_std::testing::mock_env;
6767
/// # let env = mock_env();
68-
/// # let info = mock_info("sender", &[]);
68+
/// # let recipient = "blub".to_string();
6969
/// let tip = coins(123, "ucosm");
7070
///
7171
/// let mut response: Response = Default::default();
7272
/// response.messages = vec![SubMsg::new(BankMsg::Send {
73-
/// to_address: info.sender.into(),
73+
/// to_address: recipient,
7474
/// amount: tip,
7575
/// })];
7676
/// ```
@@ -86,15 +86,15 @@ pub fn coins(amount: u128, denom: impl Into<String>) -> Vec<Coin> {
8686
/// # use cosmwasm_std::{coin, BankMsg, CosmosMsg, Response, SubMsg};
8787
/// # use cosmwasm_std::testing::{mock_env, mock_info};
8888
/// # let env = mock_env();
89-
/// # let info = mock_info("sender", &[]);
89+
/// # let recipient = "blub".to_string();
9090
/// let tip = vec![
9191
/// coin(123, "ucosm"),
9292
/// coin(24, "ustake"),
9393
/// ];
9494
///
9595
/// let mut response: Response = Default::default();
9696
/// response.messages = vec![SubMsg::new(BankMsg::Send {
97-
/// to_address: info.sender.into(),
97+
/// to_address: recipient,
9898
/// amount: tip,
9999
/// })];
100100
/// ```

0 commit comments

Comments
 (0)