Minimal Reproduction for the issue: thirdweb-dev/js#5803
-
/working This page works because sepolia chain is passed as
chain
prop. -
/not-working You can reproduce the issue by using this page.
How to reproduce:
- Change connected chain in metamask app to any other chain other than sepolia
- Connect wallet using metamask (you may need to disable the extension in the browser if you have metamask extension enabled)
- Scan and connect to the wallet
- Click switch to Sepolia
- You will see the error
-
/approved-list In this page, I replicate the behavior of the approved list in
@walletconnect/ethereum-provider
.You will see that the approved list are only:
- The chain that the user is connected to in the metamask app (or the one they chose when they click connect)
- The chainId passed as
chain
prop
The
chains
prop will not be included in the approved list.
Starter template to build an onchain react native app with thirdweb and next.
Install the template using thirdweb create
npx thirdweb create app --next
To run this project, you will need to add the following environment variables to your .env file:
CLIENT_ID
To learn how to create a client ID, refer to the client documentation.
Install dependencies
yarn
Start development server
yarn dev
Create a production build
yarn build
Preview the production build
yarn start
For help or feedback, please visit our support site