MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.16k stars 1.12k forks source link

How to return Dapp when using WalletConnect to multiple times signatures? #7255

Open codepgq opened 1 year ago

codepgq commented 1 year ago

Description

When I connect to Metamask using wallet connect v2 I have an issue with redirection to dapp, redirect only work once. so i read the source code, I found that if your url params contains a session topic and it has been created and matched with this session, it will set the deep link of the corresponding session to true.

Situation

so we wallet connect uri like this:

metamask://wc?uri=encodeUrl('wc:xxxx?sesstionTopic=session.topic'), xxxx is any string

example:

metamask://wc?uri=wc%3A00e46b69-d0cc-4b3e-b6a2-cee442f97188%402%3FsessionTopic%3D644d376a045551072894aebd64c79ac1ec266385b15c95a72c999d3a20687cd0

image

Acceptance Criteria What is a technical must-have for launch and in-scope.

Process (adapt per story)

abretonc7s commented 1 year ago

Hi @codepgq ,

Thank you for reporting the issue, we are investigating it and will get back to you as soon as possible.