Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since it is animal module, it should be AnimalObject instead of AnimeObject #714

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ Did you get the idea of why we were using this line in our “Hello World” pro

## Challenge

So, here’s the small challenge for you. Write an `animal` contract, which has an `AnimeObject` with `name`, `no_of_legs`, and `favorite_food` properties. Create a constructor function and then transfer the ownership of the `AnimeObject` object to the `sender` address.
So, here’s the small challenge for you. Write an `animal` contract, which has an `AnimalObject` with `name`, `no_of_legs`, and `favorite_food` properties. Create a constructor function and then transfer the ownership of the `AnimalObject` object to the `sender` address.

After creating the contract try deploying it on the Sui blockchain and explore what happens.

## That’s a wrap

You have covered the basics of objects in this lesson. Now, you know very well how to declare and work with an object in Move.

Completing the challenge will help you equip what you have learned faster. Please do complete it and after completing the challenge share the screenshot of the code with us. In the next lesson, we will explore more advanced concepts of using the Move on Sui object, so it is important to practice the basics first.
Completing the challenge will help you equip what you have learned faster. Please do complete it and after completing the challenge share the screenshot of the code with us. In the next lesson, we will explore more advanced concepts of using the Move on Sui object, so it is important to practice the basics first.