MetaMask / metamask-mobile

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

[Bug]: Mobile:Dapps: App gets stuck in network switch loop #11341

Open hesterbruikman opened 2 weeks ago

hesterbruikman commented 2 weeks ago

Describe the bug

When using the in-app browser with app.1inch.io and switching network in the dapp a switch network prompt is shown. Upon confirming another switch network prompt is shown to switch back to the previously connected network.

Expected behavior

After tap Switch network, no further prompts to switch network are shown until users selects other network in either dapp or wallet.

Screenshots/Recordings

https://github.com/user-attachments/assets/cfc43496-3d9e-4db9-9a2a-c4fb48d9cdb0

Steps to reproduce

  1. Open app.1inch.io in in-app browser and connect wallet
  2. Add Optimism to wallet via network dropdown
  3. Dapp prompts to switch network to Mainnet
  4. Tap Switch network
  5. Switch to Optimism in dapp
  6. Dapp prompts to switch network to Optimism
  7. Tap Switch network
  8. Dapp prompts to switch network to Mainnet
  9. Tap Switch network
  10. Find loop

Error messages or log output

No response

Detection stage

During release testing

Version

7.32.0 - RC 1 - 1435 Reproduced on 7.30.0 (1414) Could not reproduce on 7.29.2

Build type

None

Device

Android Samsung s10e

Operating system

Android

Additional context

Behavior might be removed through multichain work in progress.

Severity

No response

sleepytanya commented 2 weeks ago

Probably related - https://github.com/MetaMask/metamask-mobile/issues/11327