Skip to content

Add a Generic type for Meta object #7

@Reblixt

Description

@Reblixt

Consider how to add a generic type on the Meta object so it does not conflict with the NFT object.

Pros:

  • This is for increasing flexibility for the Collection creator on what to store in the NFT and so they do not need to create a Wrapper object.

Cons:

  • Could increase the complexity of a funciton calls

Resources:
use std::type_name::TypeName;
or
public struct Collection<T: store, meta: key + store> has key, store {...}
or some other solution

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions