Skip to content

Commit

Permalink
Add missing chainId validation to getEvents subquery (#1129)
Browse files Browse the repository at this point in the history
* filter getEvents union queries with checkpoint limits

* add changeset

* benchmark

* remove checkpoint logic from getEvents subquery

---------

Co-authored-by: typedarray <[email protected]>
Co-authored-by: Kyle Scott <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2024
1 parent ff3016b commit e6a0ab8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/sync-store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ export const createSyncStore = ({
ksql`null`.as("logId"),
"id as callTraceId",
])
.where("chainId", "=", filter.chainId)
.where((eb) =>
eb.or(
filter.functionSelectors.map((fs) =>
Expand Down

0 comments on commit e6a0ab8

Please sign in to comment.