Skip to content

fix: port recent viem fixes to AbiParameters, Block, Bytes, Fee, Hex and PersonalMessage - #729

Merged
jxom merged 1 commit into
mainfrom
viem-upstream-2026-11
Nov 28, 2026
Merged

jxom merged 1 commit into
mainfrom
viem-upstream-2026-11

Conversation

@jxom

@jxom jxom commented Nov 27, 2026

Copy link
Copy Markdown
Member

Ports the viem fixes and features from the last two weeks that apply to ox primitives.

The Bytes.toString parity test and the Bytes/Base64 fuzz references now compare against TextDecoder with ignoreBOM: true, so they still check the fast path.

Other viem changes in the window were already in ox (SIWE, RLP canonical, compressed public keys, EIP-712 domain, requestsHash, typed data arrays) or have no ox counterpart (ERC ABI constants, Tempo actions/ABIs, OP Stack, ERC-7739, transports).

Verified with pnpm test --project core (offline, without Anvil): the same 33 Anvil-dependent tests fail as on unmodified main, and every new test passes. The ABI head test fails without the fix. pnpm check:types and vp check pass.

…e`, `Hex` and `PersonalMessage`

- Kept a leading U+FEFF when decoding UTF-8 strings (wevm/viem#5590).
- Rejected a missing static head after a dynamic parameter in AbiParameters.decode (wevm/viem#5572).
- Rejected odd-length hex in PersonalMessage.encode (wevm/viem#5631).
- Added blockAccessListHash and slotNumber to Block (wevm/viem#5674).
- Added baseFeePerBlobGas and blobGasUsedRatio to Fee.FeeHistory (wevm/viem#5635).

Amp-Thread-ID: https://ampcode.com/threads/T-01a21f59-905f-745c-8634-6581aa9f965e
Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ox Error Error Nov 27, 2026 11:57pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T23:56:24.935882Z f54cacf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Published ox@0.0.0-pr-729-f54cacf under the pr-729 dist-tag, which follows this pull request until it closes.

pnpm add ox@pr-729
pnpm add ox@0.0.0-pr-729-f54cacf

@jxom
jxom merged commit 97fa384 into main Nov 28, 2026
14 of 15 checks passed
@jxom
jxom deleted the viem-upstream-2026-11 branch November 28, 2026 00:12
jxom added a commit that referenced this pull request Nov 28, 2026
…e`, `Hex` and `PersonalMessage` (#730)

- Kept a leading U+FEFF when decoding UTF-8 strings (wevm/viem#5590).
- Rejected a missing static head after a dynamic parameter in AbiParameters.decode (wevm/viem#5572).
- Rejected odd-length hex in PersonalMessage.encode (wevm/viem#5631).
- Added blockAccessListHash and slotNumber to Block (wevm/viem#5674).
- Added baseFeePerBlobGas and blobGasUsedRatio to Fee.FeeHistory (wevm/viem#5635).

Backport of #729.

Amp-Thread-ID: https://ampcode.com/threads/T-01a21f59-905f-745c-8634-6581aa9f965e

Co-authored-by: Amp <amp@ampcode.com>
@github-actions github-actions Bot mentioned this pull request Nov 28, 2026

This branch had an error being deployed

1 failed deployment
Preview — f54cacfc Deployed Nov 27, 2026 by vercel[bot]
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