core
core copied to clipboard
feat: add call to getCollection to get more collection data
Explanation
We wanted to fetch more collection related data to populate the new NFT details designs. When an NFT is either detected or manually imported, i added a call to NFT-API get collections API to fetch more collection data.
References
Changelog
@metamask/assets-controllers
-
ADDED: Added a batch call to get collections API in
detectNftsfunction. -
ADDED: Added a call to get collections API inside
getNftInformationFromApi
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