Skip to content

关于 key , store, copy , drop 四个能力 #16

Answered by RandyPen
v1xingyue asked this question in Q&A
Discussion options

You must be logged in to vote

具有 key 或 store 的struct 都可以存储在链上,同时具有 key, store 的可以被视为资产,使用 transfer::public_transfer 转移。而只有 key 的 struct 只能在创建该 sui object 的 module 内部被 transfer::transfer 转移。

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@fyang1024
Comment options

@RandyPen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by v1xingyue
Comment options

You must be logged in to vote
0 replies
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
Category
Q&A
Labels
None yet
3 participants