@@ -7,14 +7,13 @@ use basic_bootloader::bootloader::block_header::EMPTY_OMMER_ROOT_HASH;
77use basic_bootloader:: bootloader:: constants:: MAX_BLOCK_GAS_LIMIT ;
88use rig:: alloy:: primitives:: { Address , B256 } ;
99use rig:: ruint:: aliases:: { B160 , U256 } ;
10- use rig:: utils:: run_block_of_erc20;
11- use rig:: { zk_ee:: utils:: Bytes32 , Chain } ;
10+ use rig:: ZKsyncOSTester ;
1211
1312// Run a block of ERC20 transactions and check invariants on the block header.
1413#[ test]
1514fn test_block_header_invariants ( ) {
16- let mut chain = Chain :: empty ( None ) ;
17- let output = run_block_of_erc20 :: < false > ( & mut chain , 10 , None ) ;
15+ let mut tester = ZKsyncOSTester :: new ( ) ;
16+ let output = tester . run_block_of_erc20 ( 10 , None ) ;
1817 let header = output. header ;
1918
2019 // Check invariants on header for genesis block.
@@ -54,7 +53,7 @@ fn test_block_header_invariants() {
5453 gas_limit,
5554 ..Default :: default ( )
5655 } ;
57- let output = run_block_of_erc20 :: < false > ( & mut chain , 10 , Some ( block_context) ) ;
56+ let output = tester . run_block_of_erc20 ( 10 , Some ( block_context) ) ;
5857 let header = output. header ;
5958 assert_eq ! ( header. parent_hash, genesis_hash) ;
6059 assert_eq ! ( header. ommers_hash, EMPTY_OMMER_ROOT_HASH ) ;
0 commit comments