Skip to content

Commit a8eea65

Browse files
committed
Integrate into header tests
1 parent 2b1ff31 commit a8eea65

File tree

1 file changed

+4
-5
lines changed
  • tests/instances/header/src

1 file changed

+4
-5
lines changed

tests/instances/header/src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ use basic_bootloader::bootloader::block_header::EMPTY_OMMER_ROOT_HASH;
77
use basic_bootloader::bootloader::constants::MAX_BLOCK_GAS_LIMIT;
88
use rig::alloy::primitives::{Address, B256};
99
use 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]
1514
fn 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

Comments
 (0)