Comments (5)
I implemented this RainbowKit button like that previously.
from regen-bingo.
@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.
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.
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.
Fixed with a67e967
from regen-bingo.
Related Issues (20)
- The winning card event is not going to be reflected for all visitors
- Use ERC721A with its Query extension
- Frontend: Must work in non-web3 browsers with a default provider
- Backend: Increasing cooldowns for draw numbers
- Backend: Different design for the winning card SVG
- Backend: Review revert messages
- Backend: Add new layouts
- Backend: Review tests
- Backend: Refactor drawNumbers for constant gas cos
- Deploy BokkyPooBahsDateTimeContract to Goerli just as Mainnet
- Using Wagmi Hooks HOT 1
- Audit the RegenBingo contract
- Incorporate Hatun's mobile design in the landing page mobile view HOT 1
- Use card scores in their metadata instead of making RPC calls
- New layouts with bit masking
- Stateful 2 tabs navigation for Regen Bingo. HOT 2
- Keep a "floating at bottom" banner. HOT 1
- Mobile Hero Section HOT 2
- Updating tokenURI's of CardList HOT 1
- Wallet modal does not close after disconnect/connect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regen-bingo.