Skip to content

Validate CAIP-2 chain IDs#984

Open
samsamtrum wants to merge 1 commit into
Merit-Systems:mainfrom
samsamtrum:fix-caip2-chain-id-safety
Open

Validate CAIP-2 chain IDs#984
samsamtrum wants to merge 1 commit into
Merit-Systems:mainfrom
samsamtrum:fix-caip2-chain-id-safety

Conversation

@samsamtrum

Copy link
Copy Markdown

getChainId parsed any digit string with parseInt, so values like eip155:001 and unsafe integers could be accepted or rounded.

This validates canonical CAIP-2 chain IDs and rejects values that cannot be represented as safe integers.

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

@samsamtrum is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

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