Git Product home page Git Product logo

Comments (5)

hantuzun avatar hantuzun commented on July 21, 2024

I implemented this RainbowKit button like that previously.

from regen-bingo.

hantuzun avatar hantuzun commented on July 21, 2024

@oytuncoban asks:

Are we going to support multiple chains at same time on a single domain (like göerli and mainnet) at the same time?
Configuring chains like this prevents "Wrong Network" button if user is on Mainnet even if the deployment is on Göerli.

If I pass the chain list as only the chain is currently used, RainbowKit button will appear as "Wrong Network" on wrong networks.

We can support a single network per deployment.

regen.bingo -> ethereum
0.goerli.regen.bingo -> goerli contract a
1.goerli.regen.bingo -> goerli contract b etc.

from regen-bingo.

oytuncoban avatar oytuncoban commented on July 21, 2024

Then, changing the chain list as in the PR #60, is suitable for us, right?

This type of implementation also warns the user that the current network is wrong on the Connect button, and If the user clicks the button, it redirects the user to switch chains programmatically if the wallet supports it.

Another cool feature is that, since it uses default chain as the single chain passed into chain list, components loaded from the contract information of the correct chain. Then, if the user connects their wallet that is on the wrong network, it automatically asks for the user to switch networks.

from regen-bingo.

oytuncoban avatar oytuncoban commented on July 21, 2024

Is the idea of using single chain in the chain list passed to wagmi and rainbowkit that you don't like or just determining one in the _app.tsx @hantuzun ?

from regen-bingo.

hantuzun avatar hantuzun commented on July 21, 2024

Fixed with a67e967

from regen-bingo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.