From dc523175fada52185c8e6bf047d5a11290478e44 Mon Sep 17 00:00:00 2001 From: shiralitech <107736305+shiralitech@users.noreply.github.com> Date: Fri, 26 Aug 2022 15:59:42 -0500 Subject: [PATCH] Update index.md coin struct declaration for id Changing "info: Info" to "id: UID" --- doc/src/build/move/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/build/move/index.md b/doc/src/build/move/index.md index 6405d94a8ef6b..8cf0bb608569b 100644 --- a/doc/src/build/move/index.md +++ b/doc/src/build/move/index.md @@ -145,7 +145,7 @@ represent different types of user-defined coins as Sui objects: ``` rust struct Coin has key, store { - info: Info, + id: UID, value: u64 } ``` @@ -161,7 +161,7 @@ and [structs](https://github.com/move-language/move/blob/main/language/documenta in the Move book. In order for a Move struct type to define a Sui object type such as -`Coin`, its first field must be `info: Info`, which is a +`Coin`, its first field must be `id: UID`, which is a struct type defined in the [object module](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/sources/object.move). The Move struct type must