First App
Our first application will be quite simple yet quite important to understand how we can make digital assets(Resources) in move and store on Aptos blockchain.
In this module we will make a resource Message
which will contain a message which the user will be able to store and update on blockchain.
Test:
Since our test runs outside of an account scope, we need to create accounts to use in our test. The #[test]
annotation gives us the option to declare those accounts. We use an admin
account and set it to a random account address (@0x123
). The function accepts this signer (account) and creates it by using a built-in function to create an account for test.
Last updated