-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt switch network if a user's wallet is connected to the wrong network #54
Comments
@willyogo Should we remove AC 1 as that popup prevents them from continuing to use the app even if they have no intention of making any transactions? Then only when they attempt to make a transaction is when we check and prompt for a network switch. Going to to hold off on AC 2 as there were changes to the appropriate code in PR 56. Thus once that PR gets merged in, then we can begin work on AC 2. AC 3 is also has the same contingencies as AC 2. |
great point that users don't really need to switch network unless they're actually going to execute a transaction, which is awesome. is this true for the rep page too? if so, let's just remove that pop up so users aren't prevented from accessing the dapp if they're on the wrong network, and then AC 2 and 3 will take care of ensuring they're on the right network before executing a tx (it's actually possible to get into a state currently where the auction page will let you execute a bid or settle transaction on the wrong network, which can lead to loss of bid 😬). ty ser! |
Yup! Just updated the PR with changes to properly switch network if you try to execute a tx on the wrong network! |
nice! do you know which PR this was? i'm still not seeing any prompt to switch network and can get into this state where the app prompts you to execute txs on the wrong network steps to repro:
expected result:
actual result:
|
This is not reproducible on my end. It properly prompts to switch to the proper network and calls the smart contract on the correct chain. |
As a user, I want the member portal/auction app to prompt my wallet to switch if I'm not connected to the right network and attempt to connect wallet or prompt a transaction.
AC:
here's an article on how to do this: https://www.freecodecamp.org/news/how-to-switch-blockchains-on-metamask-with-javascript/
we also have this functionality already rocking on the Rep page
The text was updated successfully, but these errors were encountered: