Closed dojh111 closed 9 months ago
When I use this method to add BSC networks on mobile platforms, nothing happens when I call MetaMask. Is this method not supported in the current version of mobile platforms?
@Gameluo I faced the same problem as you, and found out that if you have the line of code:
switchError.code === 4902
you have to remove it to make the thing work. This problem only affects mobile platforms and not the desktop version
Metamask mobile returns a generic code -32603
, instead of 4902
as MM extension :-(
We are working on fixing this, but as a workaround you can use if(switchError.code === 4902 || switchError?.data?.orginalError?.code === 4902)
and should work on mobile as well
Metamask mobile returns a generic code -32603, instead of 4902 as MM extension :-(
Indeed. We found the same thing...
This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.
Come on, how difficult can it be to fix it?
Come on, how difficult can it be to fix it?
Exactly, seems like a total neglect.
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.
ofc there is no activity because we're waiting for someone from hundreds of employees to fix this bug. if we wait a little bit more, maybe the bug will get annoyed and fix itself on its own.
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.
This issue was closed because there has been no follow activity in 7 days. If you feel this was closed in error please provide evidence on the current production app in a new issue or comment in the existing issue to a maintainer. Thank you for your contributions.
Describe the bug The Metamask RPC API Provider method
wallet_switchEthereumChain
as stated here is supposed to throw the error code 4902 when the ethereum chain to switch to does not exist.This however, does not happen on metmask mobile for both IOS and Android, while working fine on the desktop extension for Metamask.
To Reproduce Steps to reproduce the behavior
Use the code as stated in the official Metamask documentation, and visit the site with the Metamask Mobile dApp browser:
Expected behavior When joining a new network that has not been added before, the popup to add new ethereum chain does not show up, when it should.