MetaMask / MetaMask/metamask-extension

[Bug]: RPC - An `eth_getBlockByNumber` or `eth_call` or `eth_getBalance` request has been made to Infura after closing the UI

Open
#27,129 2 comments 0 reactions 0 assignees View on GitHub
Sev2-normal team-extension-platform type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

An `eth_getBlockByNumber` or `eth_call` or `eth_getBalance` request has been made to Infura after closing the UI.
This is demonstrated by [this test.](https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/100098/workflows/719e41e8-7f60-4096-ac82-faeab6ca6b75/jobs/3726918/tests)

### Expected behavior

_No response_

### Screenshots/Recordings

![Screenshot from 2024-09-13 14-57-18](https://github.com/user-attachments/assets/22ddc563-1d5a-4b2a-8319-9d1ce0820b08)

### Steps to reproduce

Seems it

### Error messages or log output

_No response_

### Detection stage

On the development branch

### Version

develop (but might be prod too?)

### 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

Research direction

Start with the linked CircleCI test and inspect how it observes RPC requests after the UI closes. Trace the relevant request lifecycle in the TypeScript extension code, then add or update regression coverage so eth_getBlockByNumber, eth_call, and eth_getBalance are not requested after closure.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.