Function cosmwasm_std::testing::mock_env
source · [−]pub fn mock_env() -> Env
Expand description
Returns a default enviroment with height, time, chain_id, and contract address You can submit as is to most contracts, or modify height/time if you want to test for expiration.
This is intended for use in test code only.