@@ -39,7 +39,7 @@ use crate::query::{
39
39
use crate :: query:: { DelegatorWithdrawAddressResponse , DistributionQuery } ;
40
40
use crate :: results:: { ContractResult , Empty , SystemResult } ;
41
41
use crate :: traits:: { Api , Querier , QuerierResult } ;
42
- use crate :: types:: { BlockInfo , ContractInfo , Env , MessageInfo , TransactionInfo } ;
42
+ use crate :: types:: { BlockInfo , ContractInfo , Env , TransactionInfo } ;
43
43
use crate :: { from_json, to_json_binary, Binary , Uint128 } ;
44
44
#[ cfg( feature = "cosmwasm_1_3" ) ]
45
45
use crate :: {
@@ -406,16 +406,6 @@ pub fn mock_env() -> Env {
406
406
}
407
407
}
408
408
409
- /// Just set sender and funds for the message.
410
- /// This is intended for use in test code only.
411
- #[ deprecated( note = "This is inconvenient and unsafe. Use message_info instead." ) ]
412
- pub fn mock_info ( sender : & str , funds : & [ Coin ] ) -> MessageInfo {
413
- MessageInfo {
414
- sender : Addr :: unchecked ( sender) ,
415
- funds : funds. to_vec ( ) ,
416
- }
417
- }
418
-
419
409
/// Creates an IbcChannel for testing. You set a few key parameters for handshaking,
420
410
/// If you want to set more, use this as a default and mutate other fields
421
411
#[ cfg( feature = "stargate" ) ]
@@ -1239,9 +1229,11 @@ pub fn mock_wasmd_attr(key: impl Into<String>, value: impl Into<String>) -> Attr
1239
1229
#[ cfg( test) ]
1240
1230
mod tests {
1241
1231
use super :: * ;
1232
+ #[ allow( unused) ]
1233
+ use crate :: coins;
1242
1234
#[ cfg( feature = "cosmwasm_1_3" ) ]
1243
1235
use crate :: DenomUnit ;
1244
- use crate :: { coin, coins , instantiate2_address, ContractInfoResponse , HexBinary , Response } ;
1236
+ use crate :: { coin, instantiate2_address, ContractInfoResponse , HexBinary , Response } ;
1245
1237
#[ cfg( feature = "staking" ) ]
1246
1238
use crate :: { Decimal , Delegation } ;
1247
1239
use base64:: { engine:: general_purpose, Engine } ;
@@ -1280,22 +1272,6 @@ mod tests {
1280
1272
assert_eq ! ( contract_address, Addr :: unchecked( MOCK_CONTRACT_ADDR ) ) ;
1281
1273
}
1282
1274
1283
- #[ test]
1284
- fn mock_info_works ( ) {
1285
- #[ allow( deprecated) ]
1286
- let info = mock_info ( "my name" , & coins ( 100 , "atom" ) ) ;
1287
- assert_eq ! (
1288
- info,
1289
- MessageInfo {
1290
- sender: Addr :: unchecked( "my name" ) ,
1291
- funds: vec![ Coin {
1292
- amount: 100u128 . into( ) ,
1293
- denom: "atom" . into( ) ,
1294
- } ]
1295
- }
1296
- ) ;
1297
- }
1298
-
1299
1275
#[ test]
1300
1276
fn addr_validate_works ( ) {
1301
1277
// default prefix is 'cosmwasm'
0 commit comments