Skip to content

Commit

Permalink
Fix block path for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
i1i1 committed Dec 19, 2024
1 parent 4ca1949 commit 58d051b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/pevm/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ pub fn for_each_block_from_disk(mut handler: impl FnMut(Block, InMemoryStorage<'
.unwrap();

for block_path in fs::read_dir(data_dir.join("blocks")).unwrap() {
let block_path = block_path.unwrap().path();
let block_dir = data_dir.join("blocks").join(block_path);
let block_dir = block_path.unwrap().path();

// Parse block
let block = serde_json::from_reader(BufReader::new(
Expand Down

0 comments on commit 58d051b

Please sign in to comment.