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

UniversalCollection and BasicNFT Contracts #208

Open
wants to merge 1 commit into
base: standard-v2
Choose a base branch
from

Conversation

joshuahannan
Copy link
Member

Description

Adds the UniversalCollection contract, a contract that allows anyone to use its generic collection as their project's collection without having to define their own. This is only meant to be used by projects who don't do anything different with their collection.

This will be merged and deployed after the Cadence 1.0 upgrade is complete


/// Borrow the view resolver for the specified NFT ID
access(all) view fun borrowViewResolver(id: UInt64): &{ViewResolver.Resolver}? {
return (&self.ownedNFTs[id] as &{ViewResolver.Resolver}?)!
Copy link
Contributor

Choose a reason for hiding this comment

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

this should not be ! at the end.

@turbolent
Copy link
Member

What's the status of this?

@joshuahannan
Copy link
Member Author

@turbolent It is on hold right now while we wrap up some technical debt. Also, flowty and find were working on UniversalCollection contracts, so we need to review those soon to give them feedback and see how we might be able to potentially collaborate on them

@bjartek
Copy link
Contributor

bjartek commented Sep 23, 2024 via email

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