We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e60374 commit c8df533Copy full SHA for c8df533
src/tasks/env.rs
@@ -67,7 +67,7 @@ impl Environment {
67
68
/// Create a new [`AlloyDB`] for this environment using the given provider.
69
pub fn alloy_db<N: Network, P: Provider<N>>(&self, provider: P) -> AlloyDB<N, P> {
70
- AlloyDB::new(provider, BlockId::latest())
+ AlloyDB::new(provider, self.prev_header.number.into())
71
}
72
73
0 commit comments