File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -1277,9 +1277,22 @@ mod tests {
1277
1277
include_bytes ! ( "../../../crypto/testdata/eth-headers/1699693797.394876721s.json" ) ;
1278
1278
1279
1279
#[ test]
1280
- fn mock_env_matches_mock_contract_addr ( ) {
1281
- let contract_address = mock_env ( ) . contract . address ;
1282
- assert_eq ! ( contract_address, Addr :: unchecked( MOCK_CONTRACT_ADDR ) ) ;
1280
+ fn mock_env_works ( ) {
1281
+ let env = mock_env ( ) ;
1282
+ assert_eq ! (
1283
+ env,
1284
+ Env {
1285
+ block: BlockInfo {
1286
+ height: 12345 ,
1287
+ time: Timestamp :: from_nanos( 1571797419879305533 ) ,
1288
+ chain_id: "cosmos-testnet-14002" . to_string( )
1289
+ } ,
1290
+ transaction: Some ( TransactionInfo { index: 3 } ) ,
1291
+ contract: ContractInfo {
1292
+ address: Addr :: unchecked( MOCK_CONTRACT_ADDR )
1293
+ }
1294
+ }
1295
+ )
1283
1296
}
1284
1297
1285
1298
#[ test]
You can’t perform that action at this time.
0 commit comments