-
|
https://docs.sui.io/build/programming-with-objects/ch4-object-wrapping 提到
为什么 https://github.com/MystenLabs/sui/blob/d0f9a3047879f600bc61c94e519ad91bd6a8f0cd/sui_programmability/examples/objects_tutorial/sources/trusted_swap.move#L72-L73 能把 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
这么久无人回答,我只好自问自答了 因为 https://github.com/MystenLabs/sui/blob/d0f9a3047879f600bc61c94e519ad91bd6a8f0cd/sui_programmability/examples/objects_tutorial/sources/trusted_swap.move#L57-L69 这段代码就是 unwrap 过程, |
Beta Was this translation helpful? Give feedback.
这么久无人回答,我只好自问自答了
因为 https://github.com/MystenLabs/sui/blob/d0f9a3047879f600bc61c94e519ad91bd6a8f0cd/sui_programmability/examples/objects_tutorial/sources/trusted_swap.move#L57-L69 这段代码就是 unwrap 过程,
object1和object2经过unwrap就可以被作为参数传递,或被transfer::transfer函数转移了