MetaMask / MetaMask/metamask-extension
[Bug]: While on Popular networks view, clicking on the NFT contract leads to global network explorer instead of the NFT's block explorer
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
When the Popular networks view is selected and clicking on the NFT contract address from the NFT details, it leads to the block explorer of the currently selected network, and not the NFT's block explorer
### Expected behavior
Clicking on the contract address from the NFT details to lead to the correct block explorer and display the NFT details
### Screenshots/Recordings
https://github.com/user-attachments/assets/783d05dd-70a6-44c3-880b-55a1fe36e5d7
### Steps to reproduce
1. Have NFT on a network
2. Switch to a different network in MetaMask than the one with the NFT
3. Go to NFTs tab
4. Switch to Popular networks view
5. Click on NFT
6. Click on contract address
7. Notice it leads to currently selected network block explorer
### Error messages or log output
```shell
```
### Detection stage
During release testing
### Version
12.20.0
### Build type
None
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
Contributor guide
Research direction
Reproduce the issue in Chrome using the listed steps, with an NFT on one network while MetaMask is switched to another, then trace the NFT details contract-address link. Done means clicking the contract opens the NFT's network-specific block explorer and displays its details rather than the currently selected network's explorer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100