-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Untrusted assets should not block the addition of custom tokens (#3491)
Closes #3467 ## What Currently, the user isn't able to add an asset that is in the untrusted list. We display a message about the existence of the token and block the button. We should allow users to add an asset that is in the untrusted list. ### Changes - Ability to manually add unverified assets. - Simplification of utils function for untrusted/trusted tokens. - When adding an unverified asset, don't display a dust warning. - Don't update the metadata of assets in the token list and network base assets. ## UI https://github.com/tahowallet/extension/assets/23117945/f5dd9dea-e8c5-4bf1-b535-73edbd93a86c ## Testing - [x] Select an unverified token from the list and then try adding it manually. The asset should be added correctly. - [x] Try adding an unverified token which is dust. There should be a dust warning. - [x] Verify the asset from the list and then try to add it manually. A message should appear saying that the asset is already added. - [x] Try adding a trusted asset that already exists in the wallet. A message should appear saying that the asset is already added. - [x] Check that adding tokens works for assets outside the unverified list. - Test address: `testertesting.eth` - Network: Fantom Opera - Token: `0x841fad6eae12c286d1fd18d1d525dffa75c7effe` - [x] Ensure that you continue to be unable to send and swap unverified assets until verified. After verification, the token should appear in the list of assets to be sent and swapped. - [x] Verification by manually importing the token - [x] Verification by the add to list button (asset warning slide-up menu) Latest build: [extension-builds-3491](https://github.com/tahowallet/extension/suites/14149590642/artifacts/792592880) (as of Sat, 08 Jul 2023 04:51:18 GMT).
- Loading branch information
Showing
11 changed files
with
146 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.