MetaMask / MetaMask/metamask-extension

[Bug]: Wallet API - `wallet_switchEthereumChain` triggers the 3rd party privacy notice screen from Snaps

Open
#32,412 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage regression-production Sev2-normal team-wallet-api-platform-deprecated type-bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.