-
Notifications
You must be signed in to change notification settings - Fork 393
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 hiding unverified assets #3708
Conversation
One path we might consider here is not using EDIT to add: also, of course, it's unclear why we're showing an asset automatically/through asset discovery that was previously marked as explicitly removed... |
Ok so the problem seems to be caused by removing assets from redux:
We need to either make sure we are not adding removed assets back to the redux or we should just include the information about the asset I see the problem with naming here - |
To avoid hidden custom assets reappearing after balances update we need to filter them out while balances are being deserialized.
Unfortunately the problem still occurs: Screen.Recording.2023-12-18.at.15.27.50.movTested on extension-builds-3708 (as of Fri, 15 Dec 2023 13:31:07 GMT). |
Hmm, I just noticed that the build I was testing on was built 3 days ago... Looks the artifact did not update after the recent commits... Will investigate why... EDIT: Ok, the new artifact was produced, but the bot and Jagoda were editing the PR description at a similar time and Jagoda has overwritten the bot's change by mistake: I will restore the bot's change and will test the PR on the latest build. |
What is the expected behavior for a case where an asset is removed via the |
@michalinacienciala If I remember correctly such asset should reappear as verified |
Yeah, that what I thought as well. But I hit a problem with adding a previously removed asset in this scenario:
Screen.Recording.2023-12-18.at.16.55.58.movBtw, I also noticed that the balance of the LOOKSDROP asset is wrong (we show 80 on the asset list, but when trying to import the asset, balance is shown as 800 (which is in line with Etherscan). I will investigate that independently of this PR. |
Interesting, seems like another bug but will see tomorrow if I can quickly solve it in one PR. |
The problem mentioned above is different than the one we solved here (and not trivial to solve) so let's fix it in a separate PR. |
## What's Changed * Enable swaps on Sepolia testnet by @michalinacienciala in #3710 * Prevent read-only address submission when validating input by @xpaczka in #3705 * Support video avatars by @xpaczka in #3700 * Replace `customStyle` property with `style` by @xpaczka in #3715 * Show tooltips on hovering over icons with no labels by @xpaczka in #3711 * Minor UI issues by @xpaczka in #3716 * Fix hiding unverified assets by @jagodarybacka in #3708 * v0.54.0 by @xpaczka in #3706 * chore(ui): typo fix by @IssouChancla in #3717 * Switch e2e tests run on Goerli to Sepolia by @michalinacienciala in #3719 ## New Contributors * @xpaczka made their first contribution in #3705 * @IssouChancla made their first contribution in #3717 **Full Changelog**: v0.54.0...v0.55.0 Latest build: [extension-builds-3720](https://github.com/tahowallet/extension/suites/19343332470/artifacts/1136165985) (as of Wed, 27 Dec 2023 09:28:52 GMT).
Resolves #3675
What has been done
The problem was that although we were removing custom assets correctly from the redux and marking them as removed in the databese then they were added back with next balances update.
removed
filed to metadata type for consistencyTesting
Try to reproduce steps from the linked issue. The item that was removed shouldn't go back anymore even after reload.
Latest build: extension-builds-3708 (as of Thu, 21 Dec 2023 09:27:55 GMT).