@@ -63,14 +63,14 @@ impl fmt::Display for Coin {
63
63
///
64
64
/// ```
65
65
/// # use cosmwasm_std::{coins, BankMsg, CosmosMsg, Response, SubMsg};
66
- /// # use cosmwasm_std::testing::{ mock_env, mock_info} ;
66
+ /// # use cosmwasm_std::testing::mock_env;
67
67
/// # let env = mock_env();
68
- /// # let info = mock_info("sender", &[] );
68
+ /// # let recipient = "blub".to_string( );
69
69
/// let tip = coins(123, "ucosm");
70
70
///
71
71
/// let mut response: Response = Default::default();
72
72
/// response.messages = vec![SubMsg::new(BankMsg::Send {
73
- /// to_address: info.sender.into() ,
73
+ /// to_address: recipient ,
74
74
/// amount: tip,
75
75
/// })];
76
76
/// ```
@@ -86,15 +86,15 @@ pub fn coins(amount: u128, denom: impl Into<String>) -> Vec<Coin> {
86
86
/// # use cosmwasm_std::{coin, BankMsg, CosmosMsg, Response, SubMsg};
87
87
/// # use cosmwasm_std::testing::{mock_env, mock_info};
88
88
/// # let env = mock_env();
89
- /// # let info = mock_info("sender", &[] );
89
+ /// # let recipient = "blub".to_string( );
90
90
/// let tip = vec![
91
91
/// coin(123, "ucosm"),
92
92
/// coin(24, "ustake"),
93
93
/// ];
94
94
///
95
95
/// let mut response: Response = Default::default();
96
96
/// response.messages = vec![SubMsg::new(BankMsg::Send {
97
- /// to_address: info.sender.into() ,
97
+ /// to_address: recipient ,
98
98
/// amount: tip,
99
99
/// })];
100
100
/// ```
0 commit comments