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

fix: add tokenURI to compare nft data #3856

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

sahar-fehri
Copy link
Contributor

@sahar-fehri sahar-fehri commented Jan 26, 2024

Explanation

While i was testing NFT refreshing mechanism on Mobile with an Opensea collection, noticed that the tokenURI returned was the old URI, that was because the compareNftMetadata fct was returning false while it should have returned true.
I added the TokenURI as a key to compare with.

References

Changelog

@metamask/assets-controllers

  • FIXED: Added tokenURI key to compareNftMetadata fct

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@sahar-fehri sahar-fehri requested a review from a team as a code owner January 26, 2024 12:24
Copy link
Contributor

@digiwand digiwand left a comment

Choose a reason for hiding this comment

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

nice find and fix! 🙌🏼

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.

Looks good!

@MajorLift MajorLift mentioned this pull request Mar 19, 2024
@sahar-fehri sahar-fehri force-pushed the fix/add-tokenUri-to-compareNftMetadata branch from 0a2a202 to 94c8811 Compare March 19, 2024 14:49
@sahar-fehri sahar-fehri merged commit 63aa161 into main Mar 19, 2024
139 checks passed
@sahar-fehri sahar-fehri deleted the fix/add-tokenUri-to-compareNftMetadata branch March 19, 2024 14:57
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