Skip to content

NFT crafting/combining: Where to store burnRef? #381

Discussion options

You must be logged in to vote

The easiest way is to put the BurnRef in the token's object itself with a move_to with the object's address. You will then need to do a move_from the object's address to recover the BurnRef, which must be consumed by burn. You cannot use a reference of the BurnRef

Here's an example https://github.com/aptos-labs/daily-move/blob/main/snippets/modifying-nfts/sources/modify_nfts.move#L201-L228

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Alexzander-Stone
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nft Questions related to NFTs and digital asset / token standards
2 participants