MetaMask / MetaMask/metamask-extension
[Bug]: Switching network results wrong account balance
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
When switching network, balance of account will not get updated.
### Steps to reproduce
1. Set up extension in chrome
2. Add polygon and ethereum chains
3. Add different matic from your ethereum balance
4. Switch between ethereum and matic - it will change currency to matic, but balance of ETH
### Error messages or log output
_No response_
### Version
10.8.1
### Build type
_No response_
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
_No response_
### Additional context
_No response_
Contributor guide
Research direction
No source files, tests, or entry points are named. Reproduce the issue in the Chrome extension using Ethereum and Polygon, then trace network switching and balance updates; done means the displayed balance matches the selected network after each switch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100