blocknative / web3-onboard

Client library to onboard users to web3 apps
https://onboard.blocknative.com/
MIT License
837 stars 496 forks source link

Nate/app chain ids fix #2212

Closed nateReiners closed 4 months ago

nateReiners commented 4 months ago

Description

Converts chainIds to numbers before passing as appChainIds

PLEASE NOTE- Checklist must be complete prior to review.

Checklist

Docs Checklist

If this PR includes changes to add an injected wallet or SDK wallet module:

Please complete the following using the internal demo package. To run this demo use the command yarn && yarn dev to get the project running at http://localhost:8080/

Tests with demo app (injected)

Tests with demo app (SDK)

Adamj1232 commented 4 months ago

Thanks for this, closing for now as I have a more scoped work around for the issue I was seeing with eth_chainId returning a number instead of hex. For the util I went with the viem fromHex function. Thanks again!