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

Add preference to enable/disable collectible detection #638

Merged
merged 2 commits into from
Nov 23, 2021

Conversation

adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented Nov 22, 2021

As part of the security/UX prerequisites for bringing NFTs into the extension (and for enhancing security for in mobile) we are adding a user preference to allow users to toggle on or off collectible auto-detection, just as we have previously done with ERC-20 Token detection.

NFT in Extension designs:
Screen Shot 2021-11-23 at 10 39 14 AM

This PR adds the preference to the PreferencesController and reads that setting in the CollectibleDetectionController to determine whether to detect/poll for collectibles.

@adonesky1 adonesky1 force-pushed the add-collectible-detection-preference branch from c02a0ff to e352ad3 Compare November 23, 2021 15:46
@adonesky1 adonesky1 changed the title add preference to enable/disable collectible detection Add preference to enable/disable collectible detection Nov 23, 2021
@adonesky1 adonesky1 marked this pull request as ready for review November 23, 2021 16:39
@adonesky1 adonesky1 requested a review from a team as a code owner November 23, 2021 16:39
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Makes sense 👍🏻

@adonesky1 adonesky1 merged commit f86f60c into main Nov 23, 2021
@adonesky1 adonesky1 deleted the add-collectible-detection-preference branch November 23, 2021 19:11
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* add preference to enable/disable collectible detection

* update tests
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* add preference to enable/disable collectible detection

* update tests
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.

3 participants