Skip to content

fix: match number and bigint integer filters in parseEventLogs - #5415

Closed
mortezashojaei wants to merge 3 commits into
wevm:mainfrom
mortezashojaei:fix/parse-event-logs-number-bigint
Closed

mortezashojaei wants to merge 3 commits into
wevm:mainfrom
mortezashojaei:fix/parse-event-logs-number-bigint

Conversation

@mortezashojaei

@mortezashojaei mortezashojaei commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • parseEventLogs / getLogs args filtering compared integer values with ===, so a JS number filter never matched a decoded bigint and matching logs were dropped (often after encodeEventTopics had already accepted the number for RPC topic encoding).
  • Compare integer ABI args via BigInt in isEqual, matching the existing address / bytes normalization pattern.
  • Add regression coverage for indexed and non-indexed uint256 number filters.

Test plan

  • ./node_modules/.bin/vitest run -c ./test/vitest.config.ts --project core src/utils/abi/parseEventLogs.test.ts -t "args: args"
  • CI core project / types checks

@vercel

vercel Bot commented Nov 4, 2026

Copy link
Copy Markdown

@mortezashojaei is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 552f44e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mortezashojaei mortezashojaei changed the title fix: match number and bigint integer filters in parseEventLogs WIP - fix: match number and bigint integer filters in parseEventLogs Nov 4, 2026
@mortezashojaei mortezashojaei changed the title WIP - fix: match number and bigint integer filters in parseEventLogs fix: match number and bigint integer filters in parseEventLogs Nov 4, 2026
@jxom jxom closed this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants