Skip to content

Fix connect chain id normalization#602

Open
samsamtrum wants to merge 1 commit into
0xsequence:masterfrom
samsamtrum:fix-connect-chain-id-normalization
Open

Fix connect chain id normalization#602
samsamtrum wants to merge 1 commit into
0xsequence:masterfrom
samsamtrum:fix-connect-chain-id-normalization

Conversation

@samsamtrum
Copy link
Copy Markdown

Fixes connect chain id normalization so malformed values are rejected instead of being partially parsed or converted to unsafe numbers. Adds focused coverage for valid and invalid chain ids.

@samsamtrum samsamtrum requested a review from a team as a code owner June 1, 2026 18:00
Copy link
Copy Markdown

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

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: dfc20332c1

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

@@ -0,0 +1,21 @@
import { describe, expect, it } from 'vitest'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the missing Vitest dependency

In packages/connect, this new test is included by the package tsconfig's ./src/**/*.ts pattern, so pnpm --filter @0xsequence/connect typecheck/build:esm will try to resolve this import. I checked packages/connect/package.json and the lockfile importer for packages/connect, and vitest is not declared there (nor at the workspace root), so a fresh pnpm install cannot resolve vitest from this package and the connect build/typecheck will fail with TS2307 before publishing.

Useful? React with 👍 / 👎.

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