-
Notifications
You must be signed in to change notification settings - Fork 165
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
Adding Medias view to MetadataViews.NFTView #123
Comments
I don't see why not, we should be able to add it |
We cannot add state to this struct as it is already created, then you would need to have a new version of the view with a new name. |
Maybe we can call it v2? |
I’m guessing that’s due to the limitation of flow contract updatability. |
Agreed we can make a broader v2 core views issue to discuss what we think should be added |
@bymi15 Can you open a PR with this update? That would be a good place to have this discussion |
Thanks for your response @joshuahannan |
IMO this is quite an important issue, as far I understand it, the only source of Pls correct me if I am wrong but seems like as long nft media goes, the |
@PeterBenc I think the |
As we said in the PR, the NFTView is not a requirement, it is simply a utility view that combines all other views. If you want |
The problem is that this is all tied in with NFTCatalog which uses NFTView: https://github.com/dapperlabs/nft-catalog/blob/main/cadence/contracts/NFTRetrieval.cdc#L99 Perhaps this could be raised in NFTCatalog - so they can support other metadata views such as Medias, then we could probably close this one. |
That contract just has just helpful shared functions, they are not mutating any state. I can update those to include Medias but you should be able to do the same from within a script if you need to or any other contract for that matter |
@bshahid331 yeah that's true but I think it would be nice to include other views in |
yep I can update it but you should be able to unblock yourself if needed |
Thanks for the discussion, I dug a bit deeper and realized I was missing some context in order to comprehend this fully, So I found out I should be able to get other media files and not rely on the |
@PeterBenc |
Issue To Be Solved
Are there any reasons why the
Medias
view is not included in theMetadataViews.NFTView
?Can this be included as there are quite a few NFT collections that use video files rather than images and this can only be included in the
Medias
view.The text was updated successfully, but these errors were encountered: