Skip to content

Commit

Permalink
Fix Object Ownership Link in Object Basics Doc (MystenLabs#7728)
Browse files Browse the repository at this point in the history
Fixes MystenLabs#7727

Co-authored-by: Randall-Mysten <109545725+randall-Mysten@users.noreply.github.com>
  • Loading branch information
jnaulty and randall-Mysten authored Jan 26, 2023
1 parent 7677133 commit c6463f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ All of the APIs for adding objects to persistent storage live in the [`transfer`
```rust
public fun transfer<T: key>(obj: T, recipient: address)
```
This places `obj` in global storage along with metadata that records `recipient` as the owner of the object. In Sui, every object must have an owner, which can be either an address, another object, or "shared"--see [Object ownership](../learn/objects#object-ownership) for more details.
This places `obj` in global storage along with metadata that records `recipient` as the owner of the object. In Sui, every object must have an owner, which can be either an address, another object, or "shared". See [Object ownership](../../learn/objects.md#object-ownership) for more details.

> :bulb: In core Move, we would call `move_to<T>(a: address, t: T)` to add the entry `(a, T) -> t` to the global storage. But because (as explained above) the schema of Sui Move's global storage is different, we use the `Transfer` APIs instead of `move_to` or the other [global storage operators](https://github.com/move-language/move/blob/main/language/documentation/book/src/global-storage-operators.md) in core Move. These operators cannot be used in Sui Move.
Expand Down

0 comments on commit c6463f9

Please sign in to comment.