Skip to content

fix: hash indexed string args as UTF-8 in encodeEventTopics and parseEventLogs - #5238

Merged
jxom merged 1 commit into
wevm:mainfrom
Iamsohungrynow:fix/indexed-string-topic-hash
Oct 19, 2026
Merged

jxom merged 1 commit into
wevm:mainfrom
Iamsohungrynow:fix/indexed-string-topic-hash

Conversation

@Iamsohungrynow

Copy link
Copy Markdown
Contributor

encodeEventTopics and parseEventLogs ran indexed string args through toBytes, so a hex-looking value like an address string got hashed as raw bytes (0x06e1… instead of 0x1e14… from solidity/ethers/ox) and getLogs filters missed those events. bytes args are unchanged

…parseEventLogs`

Both used `toBytes`, which decodes a hex-looking string such as an address
string as raw bytes, so the topic didn't match what Solidity emits
(`keccak256(bytes(s))`) and `getLogs` filtered such events out. `bytes`
args are hashed the same as before.
@vercel

vercel Bot commented Oct 15, 2026

Copy link
Copy Markdown

@Iamsohungrynow 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 Oct 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 804a641

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

@jxom
jxom merged commit 8b685f8 into wevm:main Oct 19, 2026
2 of 3 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 19, 2026
jxom added a commit to wevm/ox that referenced this pull request Oct 25, 2026
…`, `Hex`, and `RpcTransport` (#527)

* fix: keep empty `version` in `TypedData.extractEip712DomainTypes`

Ports wevm/viem#5240.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* feat: add `even` option to `Hex.assert` and `Hex.validate`

Ports wevm/viem#5283.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* fix: array overload resolution in `AbiItem.fromAbi`

Ports wevm/viem#5281.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* fix: `AbiEvent.assertArgs` `string` and `bytes` matching

Ports wevm/viem#5238 and wevm/viem#5280.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* fix: apply `RpcTransport.fromHttp` timeout to the response body and with a caller signal

Ports wevm/viem#5200.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* fix: keep first parameter after `( ` in normalizeSignature (#516)

(cherry picked from commit 36dce4a)

* test: format `Hex` and `RpcTransport` tests

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* fix: read tuple object args by name and match empty arrays in `AbiItem.fromAbi` overloads

Syncs with the merged wevm/viem#5281: tuple object args are read by component
name, and an empty array is ambiguous for `address[]` vs `string[]`/`bytes[]`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* fix: use a line comment for `getComponentValue` to satisfy `check:tsdoc`

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* fix(docgen): link to variables in API docs

Ports the `Variable` case of `getLinkForApiItem` from `main` (#414). Without
it, the `{@link ox#AccountConfig.maxSignatures}` reference added in #509
fails `docs:gen` and every `0.x` docs deployment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* fix: keep the caller signal when `AbortSignal.any` is missing in `RpcTransport.fromHttp`

`AbortSignal.any` is missing on Node < 18.17 and older browsers, which the
0.x line supports. There, the transport now uses the caller signal alone,
as it did before, instead of throwing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

* test: restore `AbortSignal.any` by property descriptor

Matches the main-branch test in #526.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0133zgX2g8oLCoH4KuY8tM9b

---------

Co-authored-by: Claude <[email protected]>
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