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

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