Skip to content

fix: port recent viem fixes to AbiParameters, Block, Bytes, Fee, Hex and PersonalMessage (0.x) - #730

Merged
jxom merged 1 commit into
0.xfrom
viem-upstream-2026-11-0.x
Nov 28, 2026
Merged

jxom merged 1 commit into
0.xfrom
viem-upstream-2026-11-0.x

Conversation

@jxom

@jxom jxom commented Nov 28, 2026

Copy link
Copy Markdown
Member

Backport of #729 to 0.x: ports the viem fixes and features from the last two weeks that apply to ox primitives.

Differences from #729: no zod schemas on 0.x, and the decoder lives in internal/bytes.ts. The Bytes.toString parity test and Bytes fuzz references now compare against TextDecoder with ignoreBOM: true.

Verified on this branch: pnpm check:types and biome check pass. The ABI head test fails without the fix (decoding succeeds). Offline pnpm test --project core (without Anvil): 2664 passed; the 34 failures are all network/RPC tests that time out without Anvil.

…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).

Backport of #729.

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 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
ox Building Building Preview Nov 28, 2026 12:08am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 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-28T00:09:30.289098Z 7536385 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.

@jxom
jxom merged commit d542947 into 0.x Nov 28, 2026
14 of 15 checks passed
@jxom
jxom deleted the viem-upstream-2026-11-0.x branch November 28, 2026 00:12
@github-actions github-actions Bot mentioned this pull request Nov 28, 2026

This branch was successfully deployed

1 active deployment
Preview — 75363857 Deployed Nov 28, 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