Skip to content

Commit

Permalink
Remove usage of mock_info from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed May 31, 2024
1 parent fa77163 commit 55426eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/std/src/coin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ impl fmt::Display for Coin {
///
/// ```
/// # use cosmwasm_std::{coins, BankMsg, CosmosMsg, Response, SubMsg};
/// # use cosmwasm_std::testing::{mock_env, mock_info};
/// # use cosmwasm_std::testing::mock_env;
/// # let env = mock_env();
/// # let info = mock_info("sender", &[]);
/// # let recipient = "blub".to_string();
/// let tip = coins(123, "ucosm");
///
/// let mut response: Response = Default::default();
/// response.messages = vec![SubMsg::new(BankMsg::Send {
/// to_address: info.sender.into(),
/// to_address: recipient,
/// amount: tip,
/// })];
/// ```
Expand All @@ -86,15 +86,15 @@ pub fn coins(amount: u128, denom: impl Into<String>) -> Vec<Coin> {
/// # use cosmwasm_std::{coin, BankMsg, CosmosMsg, Response, SubMsg};
/// # use cosmwasm_std::testing::{mock_env, mock_info};
/// # let env = mock_env();
/// # let info = mock_info("sender", &[]);
/// # let recipient = "blub".to_string();
/// let tip = vec![
/// coin(123, "ucosm"),
/// coin(24, "ustake"),
/// ];
///
/// let mut response: Response = Default::default();
/// response.messages = vec![SubMsg::new(BankMsg::Send {
/// to_address: info.sender.into(),
/// to_address: recipient,
/// amount: tip,
/// })];
/// ```
Expand Down

0 comments on commit 55426eb

Please sign in to comment.