Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit 4c69e01

Browse files
committed
Disable applying MPT if non-scroll in integration-tests.
1 parent 0c3b39f commit 4c69e01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

integration-tests/tests/mainnet.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ async fn test_mock_prove_tx() {
8181
}
8282

8383
let mut block = block_convert::<Fr>(&builder.block, &builder.code_db).unwrap();
84+
#[cfg(feature = "scroll")]
8485
witness::block_mocking_apply_mpt(&mut block);
8586
let mut updated_state_root = H256::default();
8687
block
8788
.state_root
88-
.unwrap()
89+
.unwrap_or_default()
8990
.to_big_endian(&mut updated_state_root.0);
9091

9192
builder.block.prev_state_root = block.prev_state_root;
@@ -190,11 +191,12 @@ async fn test_circuit_all_block() {
190191
}
191192

192193
let mut block = block_convert::<Fr>(&builder.block, &builder.code_db).unwrap();
194+
#[cfg(feature = "scroll")]
193195
witness::block_mocking_apply_mpt(&mut block);
194196
let mut updated_state_root = H256::default();
195197
block
196198
.state_root
197-
.unwrap()
199+
.unwrap_or_default()
198200
.to_big_endian(&mut updated_state_root.0);
199201

200202
builder.block.prev_state_root = block.prev_state_root;

0 commit comments

Comments
 (0)