Skip to content

Commit 805b485

Browse files
committed
try running host and ru at diff
1 parent 99a5e4a commit 805b485

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tasks/env.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl SimEnv {
139139
///
140140
/// This function will panic if not called within a Tokio runtime.
141141
pub fn rollup_db(&self, provider: RuProvider) -> RollupAlloyDatabaseProvider {
142-
WrapDatabaseAsync::new(self.rollup.alloy_db(provider)).expect("in tokio runtime")
142+
WrapDatabaseAsync::new(self.rollup.alloy_db(provider, BlockId::latest())).expect("in tokio runtime")
143143
}
144144

145145
/// Create an [`AlloyDB`] for the host environment using the given provider.
@@ -148,7 +148,7 @@ impl SimEnv {
148148
///
149149
/// This function will panic if not called within a Tokio runtime.
150150
pub fn host_db(&self, provider: HostProvider) -> HostAlloyDatabaseProvider {
151-
WrapDatabaseAsync::new(self.host.alloy_db(provider)).expect("in tokio runtime")
151+
WrapDatabaseAsync::new(self.host.alloy_db(provider, BlockId::number(self.prev_host().number))).expect("in tokio runtime")
152152
}
153153

154154
/// Create a simulated rollup environment using the given provider,

0 commit comments

Comments
 (0)