...个owner字段,它决定了对象在事务中的使用方式。
## **Address-owned (**地址所有**)**
地址所有对象限制了访问权限,只有对应地址的所有者才能对其进行操作。
```rust
public fun transfer(obj: T, recipient: address)
public fun public_transfe...
...
新建generics.move
```
module generics::generics {
use sui::transfer;
use sui::object::{Self, UID};
use sui::tx_context::{Self, TxContext};
struct Box has key, store {
id: UID,
value: T
}
struct SimpleBox has key, store {
id:...