-
Notifications
You must be signed in to change notification settings - Fork 5.2k
fix: improve fetching nft details for custom contracts #31432
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: improve fetching nft details for custom contracts #31432
Conversation
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. |
Builds ready [9b3aab5]
UI Startup Metrics (1260 ± 67 ms)
Bundle size diffs
|
✨ Files requiring CODEOWNER review ✨✅ @MetaMask/confirmations
🖥️ @MetaMask/wallet-ux
|
Builds ready [802413a]
UI Startup Metrics (1184 ± 61 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [995e50c]
UI Startup Metrics (1183 ± 68 ms)
Bundle size diffs
|
Builds ready [204df7f]
UI Startup Metrics (1225 ± 51 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but before we merge could you take a look at my comments, and lmk what you think? Neither need to block.
Builds ready [de99685]
UI Startup Metrics (1232 ± 54 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmation changes LGTM
Builds ready [f9fd8be]
UI Startup Metrics (1230 ± 71 ms)
Bundle size diffs
|
Description
This PR adds fetching NFT image and name from tokenURI and fallsback to the fetched values when they are undefined from NFT-API.
Related issues
Fixes: #29471
Manual testing steps
Screenshots/Recordings
Before
I was not able to repro exact behavior in issue but i added fallbacks for the behavior i saw on main for the custom contract
Screen.Recording.2025-03-31.at.20.27.50.mov
After
Screen.Recording.2025-03-31.at.15.36.29.mov
Pre-merge author checklist
Pre-merge reviewer checklist