-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Add possibility to remove collection #3206
Comments
as @roiLeo mentioned in the trash button only works if you have link to empty collection, example here: |
If I understand, the goal here is to add a feature (on /admin ?) when creator decide to burn collection it will burn all nfts from this collection & burn the collection. |
Yup, somehow in the UX friendly manner |
Step By Step
const api = await this.useApi()
const cb = api.tx.utility.batchAll
const args = [
api.tx.nft.burn(collectionId, non_burnedNftId1),
api.tx.nft.burn(collectionId, non_burnedNftId2),
api.tx.nft.burn(collectionId, non_burnedNftId3),
...
api.tx.nft.destroyCollection(collectionId),
]
|
Yes! |
Currently, empty collections don't show up in the explorer. However, in order to delete a collection (
destroy class
from the initial implementation requirements, ref. #660) it must be empty.Catch 22 with collections, I'm thinking, adding option to show user his/her empty collections and add option to delete them. This could be done under profile tab Collections with simple checkbox such as
Show empty collections
/edit with @roiLeo idea:
can't we create a /bsx/admin like for rmrk? Is this page used for that kind of stuff?
The text was updated successfully, but these errors were encountered: