[Bug]: MMSDK `metamask_batch` rejected requests for the wrong origin
Describe the bug
metamask_batch coming from MMSDK connections are currently being blocked as the wrong origin is being stored.
Error being returned to the dapp:
{"code":-32002,"message":"Request of type 'personal_sign' already pending for origin https. Please wait."}
To get the link for the dapp to reproduce this issue go to https://github.com/christopherferreira9/react-iframe-mmsdk-/pull/2 and check the latest vercel deployment.
Expected behavior
No response
Screenshots/Recordings
No response
Steps to reproduce
- Go to this dapp on your mobile browser (the device browser)
- Tap Connect -> Accept in MM
- Tap Sign message -> see issue in the browser console
Error messages or log output
Detection stage
During release testing
Version
7.47.0
Build type
None
Device
iPhone 11
Operating system
Android, iOS
Additional context
No response
Severity
No response
Decreased the severity as this is something we won't be able to fix for 7.47.0.
Hi @elribonazo,
I am checking this one as part of the Quality Sprint. Do you believe it's worth keeping it open?