Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Expose destroy witness in Uniques #9824

Closed

Conversation

green-jay
Copy link
Contributor

We are using pallet_uniques as a base NFT pallet and trying to extend it's functionality in our own pallet (pallet_nft: pallet_uniques)

The problem arises when you try to destroy an NFT class from pallet_nft. In order to do that you need DestroyWitness which holds the info for each class. There is crate visibility set for the pallet storage hence it is necessary to expose a function which provides this info.
For testing purposes it is also solicited to have a constructor with public fields available.

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Sep 20, 2021

User @green-jay, please sign the CLA here.

@green-jay green-jay marked this pull request as ready for review September 20, 2021 11:42
@green-jay green-jay marked this pull request as draft September 20, 2021 12:04
@green-jay green-jay marked this pull request as ready for review September 20, 2021 12:12
@shawntabrizi
Copy link
Member

shawntabrizi commented Sep 23, 2021

I think this is a better solution to this problem: #9844

If you agree, you can close this PR and we will complete the other.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants