Move on Sui Course
Structs and Objects
🤩 In this video you will develop your first smart contract.
- A struct is a data structure with fields. An object is a struct with methods, abilities, and a unique id.
- To create and use a Sui object, you need to define a struct with the key ability and the id field, call the object::new function, and pass the object to an entry function.
Comments
You need to enroll in the course to be able to comment!