MetaMask / metamask-mobile

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

[Bug]: Unable to swap on uniswap using device browser - Request to switch networks to Ethereum Mainnet #12479

Open Unik0rnMaggie opened 3 days ago

Unik0rnMaggie commented 3 days ago

Describe the bug

When the current network in MetaMask is not set to Ethereum Mainnet, it's not possible to swap on Uniswap using the device browser.

There is a request in MetaMask to switch to Ethereum Mainnet.

If it's rejected, the swap is not possible. If continue and the network is switched to Ethereum mainnet, the swap is not possible until switching back manually to the desired network

Expected behavior

No request to switch to Ethereum Mainnet and be able to confirm the swap.

Screenshots/Recordings

https://github.com/user-attachments/assets/5e5af438-41f0-4552-8b67-622e214e7874

Steps to reproduce

  1. Have current network in MetaMask set to any network except Ethereum Mainnet
  2. Connect to Uniswap using device browser
  3. Notice the network selected on Uniswap is the current one in MetaMask
  4. Swap any token
  5. Notice request in MetaMask to switch to Ethereum Mainnet
  6. Unable to complete swap if rejecting
  7. If accepting and network is switch to Ethereum Mainnet in MetaMask, unable to complete swap until the network is switched back manually to the desired one

Error messages or log output

No response

Detection stage

During release testing

Version

7.36.0

Build type

Other (please specify exactly where you obtained this build in "Additional Context" section)

Device

Android 14 - Pixel 6 Pro

Operating system

Android

Additional context

I obtained the build from here

Severity

No response