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

[FIX] Prevent adding non supported tokens on networks #6258

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

Cal-L
Copy link
Contributor

@Cal-L Cal-L commented Apr 24, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add needs-qa label when dev review is completed
  5. Add QA Passed label when QA has signed off

Description

This PR addresses #917. The correct behavior is that you should not be able to add a non-supported token while on certain networks through the watch asset flow (clicking on the MM icon from Dapps). Non-supported here means that the token address does not exist on the network that you are currently on. Follow steps listed in original issue to test for fix.

Screenshots/Recordings

Video of fix in thread - https://consensys.slack.com/archives/C029JG63136/p1682348127958249?thread_ts=1682111629.402559&cid=C029JG63136

Issue
#917

Progresses #???

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@Cal-L Cal-L requested a review from a team as a code owner April 24, 2023 21:40
@Cal-L Cal-L changed the base branch from main to release/6.5.0 April 24, 2023 21:40
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@Cal-L Cal-L changed the title Bug/917 warn watch tokens [FIX] Prevent adding non supported tokens on networks Apr 24, 2023
@Cal-L Cal-L added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) release-6.5.0 Issue or pull request that will be included in release 6.5.0 needs-qa Any New Features that needs a full manual QA prior to being added to a release. team-mobile-client labels Apr 24, 2023
Copy link
Contributor

@tommasini tommasini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

app/core/RPCMethods/RPCMethodMiddleware.ts Show resolved Hide resolved
app/core/RPCMethods/RPCMethodMiddleware.ts Show resolved Hide resolved
@tommasini tommasini removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Apr 25, 2023
@chrisleewilcox chrisleewilcox added QA in Progress QA has started on the feature. QA Passed A successful QA run through has been done and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. QA in Progress QA has started on the feature. labels Apr 28, 2023
@chrisleewilcox chrisleewilcox merged commit 5d54b95 into release/6.5.0 Apr 28, 2023
@chrisleewilcox chrisleewilcox deleted the bug/917-warn-watch-tokens branch April 28, 2023 21:37
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2023
@gauthierpetetin gauthierpetetin added the team-mobile-ux DEPRECATED: please use "team-wallet-ux" label instead label Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed A successful QA run through has been done release-6.5.0 Issue or pull request that will be included in release 6.5.0 team-mobile-ux DEPRECATED: please use "team-wallet-ux" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants