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 d5f95e0 commit 022a646Copy full SHA for 022a646
bin/trin-execution/src/e2hs/manager.rs
@@ -60,7 +60,7 @@ impl E2HSManager {
60
61
pub async fn last_fetched_block(&self) -> anyhow::Result<&ProcessedBlock> {
62
let Some(current_e2hs) = &self.current_e2hs else {
63
- panic!("current_e2hs should always be present, perhaps it wasn't initialized in E2HSManager::new()?");
+ bail!("No blocks were fetched yet, last_fetched_block is available only after successful get_next_block");
64
};
65
ensure!(
66
self.next_block_number > 0,
0 commit comments