Skip to content

Fix inherited aliases in the contracts chain filter - #119

Merged
markeljan merged 1 commit into
mainfrom
codex/contracts-own-chain-aliases
Nov 15, 2026
Merged

markeljan merged 1 commit into
mainfrom
codex/contracts-own-chain-aliases

Conversation

@markeljan

@markeljan markeljan commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Match only the supported chain aliases in /contracts?chain=.... Inherited properties such as constructor and __proto__ now fall back to the unfiltered dashboard, so the initial chain prop can cross the React Flight boundary.
  • Cover both inherited names, case-insensitive matching, and first-value handling for repeated query parameters.

Verification

  • With Bun 1.4.2, the three regression cases failed on main at f29cd8be and passed with the fix.
  • Next.js 16.4.6 Flight reproduced the original serialization errors in development and production modes. The fixed page serialized unsupported inputs as null and preserved Polygon and Amoy chain IDs.
  • Chrome exercised eight URLs on the real local dashboard against a read-only Redis fixture. All returned HTTP 200 with the expected filter. Clicking All Contracts after loading ?chain=__proto__ showed both fixture deployments.
  • GitHub CI passed the frozen install, typecheck, 304 tests, and full lint on Bun 1.4.2. Full local lint flags the same condition in app/chat/[id]/page.tsx on both the base and PR. Lint on the changed files passed.
  • The Vercel preview is Ready for fc3ccfd24baa7856f7db795a40e0b7dd4023cd22. Route requests reached Vercel sign-in. The route smoke ran locally.

@vercel

vercel Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
web3gpt Ready Ready Preview Nov 15, 2026 11:24am UTC

Request Review

@markeljan
markeljan marked this pull request as ready for review November 15, 2026 11:28
@markeljan
markeljan merged commit f8e793e into main Nov 15, 2026
3 checks passed

This branch was successfully deployed

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