personal_sign not works with WalletConnect v2
Describe the bug
No authorization is displayed after the personal_sign call
To Reproduce
- MetaMask active
Ethereum Mainnet - open https://react-app.walletconnect.com
- select a
Polygon Mainnetthat is not equal to your MetaMask active chain - MetaMask scan qrcode, approve connect.
- DApp select Polygon account send personal_sign request
- MetaMask is not displayed after the
personal_signcall
Smartphone (please complete the following information):
- OS: Android and iOS
- App Version [e.g. v7.0.1]
It works only if network matches, might be related to this: https://github.com/MetaMask/metamask-mobile/issues/6655#issuecomment-1602118833
Experiencing this issue as well when our dapp's chain does not match the wallet's chain. This is breaking our SIWE flow.
Experiencing this issue as well when our dapp's chain does not match the wallet's chain. This is breaking our SIWE flow.
When will this be fixed and is there a plan?
Actually the issue is selecting other chain than active is not properly tested/supported by metamask, wc v2 might be calling switch chain internally if active chain is different than passed & that call never completes so any other calls like personal sign won't work. This is serious issue but metamask has assigned medium priority to it (programmatic switch & add chain issue), not sure if this will be fixed even in 7.2. As a workaround dapp needs to ask user to manually switch before connect. Which is definitely not ideal.
Also experiencing same issue...hope it will be fixed soon
Hi! We currently only support one active chain which needs to be synced between dapp and the Wallet.