Skip to content

NFT 创建过程的理解与问题 #283

Answered by qiwihui
livelybug asked this question in Q&A
Discussion options

You must be logged in to vote

整体流程是正确的。

if AliceOne's property_version == 0, increase token property_version by one;

这个地方也会 update token properties。

有一个注释不太确定:

AliceCollection and AliceOne are linked by the collection name of type CollectionData->name. Note: AliceCollection and AliceOne may belong to different creators.

创建 TokenData 的时候,调用 token::create_tokendata 需要传入 account 的 &signer 并检查 account 账户下是否有 Collection,所以应该只能 Collection 的创建者调用,不太确定如何做到属于不同的创建者? https://github.com/aptos-labs/aptos-core/blob/main/aptos-move/framework/aptos-token/sources/token.move#L1095-L1122

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@livelybug
Comment options

Answer selected by livelybug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants