metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

personal_sign not works with WalletConnect v2

Open kecson opened this issue 3 years ago • 6 comments

Describe the bug

No authorization is displayed after the personal_sign call

To Reproduce

  1. MetaMask active Ethereum Mainnet
  2. open https://react-app.walletconnect.com
  3. select a Polygon Mainnet that is not equal to your MetaMask active chain
  4. MetaMask scan qrcode, approve connect.
  5. DApp select Polygon account send personal_sign request
  6. MetaMask is not displayed after the personal_sign call image

Smartphone (please complete the following information):

  • OS: Android and iOS
  • App Version [e.g. v7.0.1]

kecson avatar Jun 25 '23 09:06 kecson

It works only if network matches, might be related to this: https://github.com/MetaMask/metamask-mobile/issues/6655#issuecomment-1602118833

imaksp avatar Jun 26 '23 12:06 imaksp

Experiencing this issue as well when our dapp's chain does not match the wallet's chain. This is breaking our SIWE flow.

vkuts avatar Jun 26 '23 19:06 vkuts

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?

kecson avatar Jun 27 '23 02:06 kecson

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.

imaksp avatar Jun 27 '23 02:06 imaksp

Also experiencing same issue...hope it will be fixed soon

leye195 avatar Jun 28 '23 06:06 leye195

Hi! We currently only support one active chain which needs to be synced between dapp and the Wallet.

christopherferreira9 avatar Sep 06 '23 10:09 christopherferreira9