MetaMask / MetaMask/metamask-extension
[Bug]: After sending a transaction on custom networks, the balance disappears if the network manager selection is different than the sending network
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
If network manager selection is a single network and a transaction is sent on a custom network (or Sepolia test network), then the balance on the custom network disappears.
Closing and re-opening MetaMask solves the issue.
### Expected behavior
No balance disappear
### Screenshots/Recordings
https://github.com/user-attachments/assets/b8e729a6-ef4a-4bb6-9ca7-af2b57cda1fd
### Steps to reproduce
1. Add custom network or Sepolia test network
2. Switch to BNB chain in Network Manager (or any single popular network)
3. Send transaction on custom network or Sepolia test network
4. Switch to the custom network
5. Notice the balance disappeared
6. Close and reopen MetaMask
7. Notice the balance is displayed again
### Error messages or log output
```shell
```
### Where was this bug found?
Internal release testing
### Version
13.37.0
### Build type
_No response_
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
Contributor guide
Research direction
Start by reproducing the issue with a custom network or Sepolia, a single BNB network selection, and a transaction as described in the issue. Trace the balance state when switching back to the sending network; done means the balance remains visible without closing and reopening MetaMask.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- blockchain, typescript
- Domain
- blockchain, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100