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 3d0b03fCopy full SHA for 3d0b03f
crates/watcher/src/lib.rs
@@ -341,7 +341,10 @@ 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
346
+ // (batch_index=0) is intentionally skipped
347
+ if notifications.len() > logs.len() {
348
return Err(L1WatcherError::Logs(FilterLogError::InvalidNotificationCount(
349
logs.len(),
350
notifications.len(),
0 commit comments