-
Notifications
You must be signed in to change notification settings - Fork 170
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
first stab at adding nft license view #172
Conversation
…o create the 12 combinations
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.
Thanks for taking a stab! I was a little confused about how you implemented it at first, but after thinking about it, I think it makes sense and allows us to add more combinations in the future if needed. I'm wondering if it also would be nice to also include a description like we did in the proposal that I made in the other issue.
And also similar to that proposal, we want to include a Media
for each right to potentially link to an off-chain description of the rights or this "badge" that is mentioned in the proposal.
I'm happy to make those changes and add some tests, though I'm not sure the best way to do it since this is in your fork. Can I just copy your code to my branch?
@@ -640,7 +640,7 @@ pub contract MetadataViews { | |||
/// @return A optional Rarity struct | |||
/// | |||
pub fun getRarity(_ viewResolver: &{Resolver}) : Rarity? { | |||
if let view = viewResolver.resolveView(Type<Rarity>()) { | |||
if let vTiew = viewResolver.resolveView(Type<Rarity>()) { |
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.
if let vTiew = viewResolver.resolveView(Type<Rarity>()) { | |
if let view = viewResolver.resolveView(Type<Rarity>()) { |
Feel free to copy |
I opened a new PR with my suggestions: #173 I'll close this for now in favor of that one. Please leave feedback when you get the chance! Thank you. :) |
I added methods for each of the 12 combinations.
Not really sure what we should expose from the struct or if this way of creating it is the best way.
Description
For contributor use:
master
branchFiles changed
in the Github PR explorer