Skip to content

fix: align frame rpc requests and results - #480

Merged
jxom merged 4 commits into
mainfrom
jxom/frame-rpc-alignment
Sep 27, 2026
Merged

jxom merged 4 commits into
mainfrom
jxom/frame-rpc-alignment

Conversation

@jxom

@jxom jxom commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Expose FrameRequest and align request gas estimation, fill responses, simulation results, and signature signer types with ethereum/execution-apis#907. Preserve committed gas defaults when converting envelopes.

@vercel

vercel Bot commented Sep 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 Sep 27, 2026 6:51am UTC

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/ox@480

commit: fc34cc4

@jxom
jxom marked this pull request as ready for review September 27, 2026 06:46
@jxom
jxom merged commit 1ae6d07 into main Sep 27, 2026
5 of 15 checks passed
@jxom
jxom deleted the jxom/frame-rpc-alignment branch September 27, 2026 06:47
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-27T06:52:43.872121Z de7fd28 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: de7fd28c89

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/zod/FrameRequest.ts
Comment on lines +19 to +20
flags: z.optional(z_Hex.Hex),
mode: z_Hex.Hex,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate mode and flags as RPC quantities

When a request contains a noncanonical quantity such as mode: '0x00' or flags: '0x01', these fields pass z_Hex.Hex and core_FrameRequest.fromRpc silently converts them to numbers, even though the adjacent gas/value fields correctly reject leading-zero RPC quantities. This makes the new public codec accept malformed wire requests that other quantity fields reject; use the quantity schema for mode and flags as well.

Useful? React with 👍 / 👎.

raw: Hex.Hex
tx: Transaction.Rpc
raw?: Hex.Hex | undefined
tx: TxEnvelope.Rpc & { from: Address.Address }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve custom transaction types in fill results

When eth_fillTransaction is used against a custom chain or a client supporting a newer transaction type, the result can carry an arbitrary hex type, but TxEnvelope.Rpc is a closed union of the six built-in envelope types. The request side still accepts arbitrary type strings, and the previous Transaction.Rpc return type included a BaseRpc fallback, so this change makes valid custom fill responses impossible to represent; use a lookup-metadata-free generic transaction shape that retains the unknown-type fallback.

Useful? React with 👍 / 👎.

This branch had an error being deployed

1 failed deployment
Preview — de7fd28c Deployed Sep 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.

1 participant