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 376d078 commit 10c4cd1Copy full SHA for 10c4cd1
src/tasks/env.rs
@@ -64,7 +64,7 @@ impl Environment {
64
65
/// Create a new [`AlloyDB`] for this environment using the given provider.
66
pub fn alloy_db<N: Network, P: Provider<N>>(&self, provider: P) -> AlloyDB<N, P> {
67
- AlloyDB::new(provider, BlockId::latest())
+ AlloyDB::new(provider, self.prev_header.number.into())
68
}
69
70
0 commit comments