Skip to content

Commit

Permalink
fix: use inclusive check for logs range fetch in fork (foundry-rs#8245)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jun 24, 2024
1 parent abd8d55 commit a1be709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/anvil/src/eth/backend/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ impl Backend {
to_on_fork = fork.block_number();
}

if fork.predates_fork(from) {
if fork.predates_fork_inclusive(from) {
// this data is only available on the forked client
let filter = filter.clone().from_block(from).to_block(to_on_fork);
all_logs = fork.logs(&filter).await?;
Expand Down

0 comments on commit a1be709

Please sign in to comment.