MetaMask / MetaMask/metamask-extension
[Bug]: Wallet API - `wallet_switchEthereumChain` triggers the 3rd party privacy notice screen from Snaps
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
`wallet_switchEthereumChain` triggers the 3rd party privacy notice screen from Snaps
### Expected behavior
_No response_
### Screenshots/Recordings
https://github.com/user-attachments/assets/7eac92e1-2aef-4445-85fa-879d2c8c58f1
### Steps to reproduce
1. Trigger the `wallet_switchEthereumChain` for the first time in a fresh wallet
2. See snaps privacy notice
### Error messages or log output
```shell
```
### Detection stage
Production
### Version
12.16.1 and maybe earlier
### Build type
None
### Browser
Chrome
### Operating system
Linux
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the first `wallet_switchEthereumChain` call in a fresh wallet and trace where it reaches the Snaps third-party privacy notice. Confirm the intended wallet API flow with the surrounding implementation and verify that switching chains no longer displays the Snaps notice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100