Skip to content

Reject nondecimal chain id strings#46

Open
samsamtrum wants to merge 1 commit into
0xsequence:masterfrom
samsamtrum:reject-noninteger-chain-id-strings
Open

Reject nondecimal chain id strings#46
samsamtrum wants to merge 1 commit into
0xsequence:masterfrom
samsamtrum:reject-noninteger-chain-id-strings

Conversation

@samsamtrum

Copy link
Copy Markdown

The OMS wagmi provider currently normalizes decimal chain ID strings with Number, which accepts loose formats such as scientific notation. That can make an invalid JSON RPC chain ID string resolve to a different chain before the request reaches OMS.

This keeps hex chain IDs supported, but only accepts decimal string chain IDs when they are plain positive integers.

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