diff --git a/crates/watcher/src/lib.rs b/crates/watcher/src/lib.rs index ced511e6..51316430 100644 --- a/crates/watcher/src/lib.rs +++ b/crates/watcher/src/lib.rs @@ -341,7 +341,10 @@ where notifications.push(system_contract_update); } - if logs.len() != notifications.len() { + // Check that we haven't generated more notifications than logs + // Note: notifications.len() may be less than logs.len() because genesis batch + // (batch_index=0) is intentionally skipped + if notifications.len() > logs.len() { return Err(L1WatcherError::Logs(FilterLogError::InvalidNotificationCount( logs.len(), notifications.len(),