Skip to content

Commit 10c4cd1

Browse files
committed
put alloy db back
1 parent 376d078 commit 10c4cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Environment {
6464

6565
/// Create a new [`AlloyDB`] for this environment using the given provider.
6666
pub fn alloy_db<N: Network, P: Provider<N>>(&self, provider: P) -> AlloyDB<N, P> {
67-
AlloyDB::new(provider, BlockId::latest())
67+
AlloyDB::new(provider, self.prev_header.number.into())
6868
}
6969
}
7070

0 commit comments

Comments
 (0)