Skip to content

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.

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