Skip to content

Commit c8df533

Browse files
committed
put alloy db back
1 parent 7e60374 commit c8df533

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
@@ -67,7 +67,7 @@ impl Environment {
6767

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

0 commit comments

Comments
 (0)