Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: token detection on 7 more networks #4184

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

bergeron
Copy link
Contributor

Explanation

Adds support for erc20 token detection on 7 more networks. After this, we match the set of networks supported by MetaMask Portfolio.

References

https://consensyssoftware.atlassian.net/browse/MMASSETS-207

Changelog

@metamask/assets-controller

  • CHANGED: Token detection is now supported on cronos, celo, gnosis, fantom, polygon_zkevm, moonbeam, and moonriver.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@bergeron bergeron merged commit 174be6d into main Apr 23, 2024
139 checks passed
@bergeron bergeron deleted the brian/token-detection-portfolio branch April 23, 2024 04:51
@montelaidev montelaidev mentioned this pull request Apr 23, 2024
bergeron added a commit to MetaMask/metamask-extension that referenced this pull request Apr 24, 2024
## **Description**

Adds support for erc20 token detection on 7 more networks.

Patching this from core because it's small:
MetaMask/core#4184


[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/24121?quickstart=1)

## **Related issues**

https://consensyssoftware.atlassian.net/browse/MMASSETS-207

## **Manual testing steps**

1. Visit one of the new chains (cronos, celo, gnosis, fantom, polygon
zk, moonbeam, moonriver) on a wallet that has tokens on the network
2.  They should be autodetected


## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

None of the chains support token lists or detection:

<img width="345" alt="Screenshot 2024-04-22 at 9 50 03 PM"
src="https://github.com/MetaMask/metamask-extension/assets/3500406/97c08793-0b08-44b9-aef4-71f551b8a803">

### **After**

All 7 chains support detection:


https://github.com/MetaMask/metamask-extension/assets/3500406/16c8e763-ccc0-4070-8ac3-28a7dfa88e1f


<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants