Skip to content

Commit 4fdabdc

Browse files
committed
try pending
1 parent df715c5 commit 4fdabdc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/tasks/env.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +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-
debug!(block_number = ?BlockId::latest(), "creating alloy DB for rollup");
143-
WrapDatabaseAsync::new(self.rollup.alloy_db(provider, BlockId::latest())).expect("in tokio runtime")
142+
WrapDatabaseAsync::new(self.rollup.alloy_db(provider, BlockId::pending())).expect("in tokio runtime")
144143
}
145144

146145
/// Create an [`AlloyDB`] for the host environment using the given provider.
@@ -149,8 +148,8 @@ impl SimEnv {
149148
///
150149
/// This function will panic if not called within a Tokio runtime.
151150
pub fn host_db(&self, provider: HostProvider) -> HostAlloyDatabaseProvider {
152-
debug!(block_number = ?BlockId::number(self.prev_host().number), "creating alloy DB for host");
153-
WrapDatabaseAsync::new(self.host.alloy_db(provider, BlockId::number(self.prev_host().number))).expect("in tokio runtime")
151+
debug!(block_number = ?BlockId::pending(), "creating alloy DB for host");
152+
WrapDatabaseAsync::new(self.host.alloy_db(provider, BlockId::pending())).expect("in tokio runtime")
154153
}
155154

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

0 commit comments

Comments
 (0)