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

WalletConnect v2 modal does not take chains as array #41

Open
2 tasks done
KornOse opened this issue Aug 22, 2023 · 0 comments
Open
2 tasks done

WalletConnect v2 modal does not take chains as array #41

KornOse opened this issue Aug 22, 2023 · 0 comments

Comments

@KornOse
Copy link

KornOse commented Aug 22, 2023

New Feature Request

WalletConnect v2

Checklist

Current Limitation

Currently there is no possibility of passing chains as array into moralis integration of web3 modal, this raises an issue where i get the error...:
Mismatched networks. Please switch XXX Wallet current network to chainId=1
...when tying to connect WC wallet on different network than the one i provide before connecting.

Feature / Enhancement Description

This is purely limitation of Moralis code, WC v2 modal supports chains input as an array and i dont have issues connecting with any chain and so no errors are present

Example Use Case

in file WalletConnectWeb3Connector.js there is this line of code: chains: [providedChainId ? Number(providedChainId) : 1],. It would be nice to pass providedChainId as array of chainIds.
I believe that this was not intentionally set to just one id and it would require more work to implement on other parts of moralis code.
I also know that this package is already deprecated, it would just be nice to have some explanation

Alternatives / Workarounds

There are no possible workarounds as far as i know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant