fix: filter NFTs on send flow#31850
Merged
Merged
Conversation
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. |
Collaborator
✨ Files requiring CODEOWNER review ✨🖥️ @MetaMask/wallet-ux
|
Collaborator
Builds ready [469813d]
UI Startup Metrics (1255 ± 58 ms)
|
Collaborator
Builds ready [522d047]
UI Startup Metrics (1138 ± 58 ms)
|
vinnyhoward
approved these changes
Apr 10, 2025
gambinish
approved these changes
Apr 10, 2025
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes a bug introduced into 12.16.0 RC
Bug was that users could enter into a state where they could send NFTs on a different network than they belonged on. This is because we are now showing NFTs across all chains that a user has NFTs on, rather than the constrained to the GNS currentChain.
Users could enter into NFT send flow in two ways:
Via the NFT detail screen. We proactively change the network on the users behalf if they enter the send flow this way (press Send from the detail screen of a NFT from a different chain)
Via the Send button on the main NFT Grid view. This is where the bug was caught. When entering into the send flow in this way, users could enter into a state where they could accidentally send an NFT on a different chain than intended.
View recording below to visualize this difference.
This fix filters out NFTs in the second flow so that they only ever show NFTs from the globally selected chain.
Related issues
Fixes: #31858
Manual testing steps
Screenshots/Recordings
Before
Screen.Recording.2025-04-10.at.12.03.58.PM.mov
After
Screen.Recording.2025-04-10.at.3.17.56.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist