Skip to content

Latest commit

 

History

History
87 lines (55 loc) · 2.21 KB

README.md

File metadata and controls

87 lines (55 loc) · 2.21 KB

Thirdweb Bug Reproduce

Minimal Reproduction for the issue: thirdweb-dev/js#5803

Pages

  • /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.

tw-banner

thirdweb-next-starter

Starter template to build an onchain react native app with thirdweb and next.

Installation

Install the template using thirdweb create

  npx thirdweb create app --next

Environment Variables

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.

Run locally

Install dependencies

yarn

Start development server

yarn dev

Create a production build

yarn build

Preview the production build

yarn start

Resources

Need help?

For help or feedback, please visit our support site