Skip to content

Commit

Permalink
Remove usage of mock_info from docs
Browse files Browse the repository at this point in the history
(cherry picked from commit 55426eb)
  • Loading branch information
webmaster128 authored and mergify[bot] committed May 31, 2024
1 parent b456c4c commit 4606ddf
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 @@ -62,14 +62,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 @@ -85,15 +85,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 4606ddf

Please sign in to comment.