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

Metadata for Base and Parts #273

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Szegoo
Copy link
Contributor

@Szegoo Szegoo commented Feb 1, 2023

Introduces a new enum Entity with the goal to achieve cleaner code.

Closes: #270

@Szegoo
Copy link
Contributor Author

Szegoo commented Feb 1, 2023

@HashWarlock @ilionic This PR is still WIP but I would like to hear your opinion about introducing the Entity enum.

@@ -335,8 +348,7 @@ pub mod pallet {
collection_id: T::CollectionId,
},
PropertySet {
collection_id: T::CollectionId,
maybe_nft_id: Option<T::ItemId>,
entity: EntityOf<T>,
Copy link
Contributor

Choose a reason for hiding this comment

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

The changes will cause chain indexing problems for PhalaWorld. @h4x3rotab do you know a best practice to enable this Entity feature so we can ensure that this change doesn't break our indexers for PW and Stakepool?

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.

Adding Metadata to Base
2 participants