MetaMask / metamask-mobile

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

[Bug]: Switching networks when I'm in the browser doesn't change the active chain, I get: `Active chain is 0xa but received 0x1` #9006

Closed seaona closed 1 week ago

seaona commented 4 months ago

Describe the bug

Problem: whenever I am on a test dapp, if I switch networks and I try to perform a signature I get the error Active chain is 0xa but received 0x1. It seems that this only happens if I change networks when I'm on the wallet browser, but it does not happen if I switch networks when I'm on the wallet view.

This was working before and the exact same signature is working for Extension doing the same flow of switching networks.

Expected behavior

No response

Screenshots/Recordings

Screenshot from 2024-03-20 12-07-33

https://github.com/MetaMask/metamask-mobile/assets/54408225/c17a2c39-0b97-4554-8a95-7f10e703e44c

Steps to reproduce

  1. Select mainnet network
  2. Go to the test-dapp
  3. Connect the wallet
  4. Click Malicious Permit --> see signature is triggered
  5. Switch networks from the browser window
  6. Click Malicious Permit --> see error

(This works normally if I switch networks from the wallet home view)

Error messages or log output

No response

Version

I've seen this on mainnet but not in 7.19

Build type

None

Device

Pixel 6

Operating system

Android

Additional context

No response

Severity

No response

github-actions[bot] commented 2 weeks ago

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.

github-actions[bot] commented 1 week ago

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.