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 655baa7 commit 03aa5c7Copy full SHA for 03aa5c7
crates/watcher/src/lib.rs
@@ -341,7 +341,9 @@ where
341
notifications.push(system_contract_update);
342
}
343
344
- if logs.len() != notifications.len() {
+ // Check that we haven't generated more notifications than logs
345
+ // Note: notifications.len() may be less than logs.len() because genesis batch (batch_index=0) is intentionally skipped
346
+ if notifications.len() > logs.len() {
347
return Err(L1WatcherError::Logs(FilterLogError::InvalidNotificationCount(
348
logs.len(),
349
notifications.len(),
0 commit comments