You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: