Skip to content
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

Connecting with wrong network #158

Open
grod220 opened this issue Nov 22, 2024 · 0 comments
Open

Connecting with wrong network #158

grod220 opened this issue Nov 22, 2024 · 0 comments
Labels

Comments

@grod220
Copy link
Contributor

grod220 commented Nov 22, 2024

We currently have a function called walletOnWrongChain. It is able to detect if a Prax connection has a different chain ID than what the interface supports (e.g. Prax is on testnet, but trading interface + db is for mainnet).

The function is used in some queries and throwing (but I'm not seeing those "wrong wallet" errors in the UI as I'd expect 🤔). Whenever attempts a connection and we detect the wrong network, we can simply use the browser default alert() to give a message and trigger a wallet disconnect after it's dismissed.

@github-project-automation github-project-automation bot moved this to 🗄️ Backlog in Penumbra web Nov 22, 2024
@grod220 grod220 added this to Labs web Nov 22, 2024
@grod220 grod220 moved this to 📝 Todo in Labs web Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🗄️ Backlog
Development

No branches or pull requests

2 participants