Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Connecting with wrong network #158

Closed
grod220 opened this issue Nov 22, 2024 · 0 comments · Fixed by #274
Closed

Connecting with wrong network #158

grod220 opened this issue Nov 22, 2024 · 0 comments · Fixed by #274
Assignees
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 + Not 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
@VanishMax VanishMax self-assigned this Jan 16, 2025
@VanishMax VanishMax moved this from 📝 Todo to 🏗 In progress in Labs web Jan 16, 2025
@VanishMax VanishMax moved this from 🗄️ Backlog to 🏗 In progress in Penumbra Web + Not Web Jan 16, 2025
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Penumbra Web + Not Web Jan 16, 2025
TalDerei pushed a commit to penumbra-zone/web that referenced this issue Mar 10, 2025
TalDerei pushed a commit to penumbra-zone/web that referenced this issue Mar 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants