Call Your Contract
Now that your contract has been fully deployed, we can start interacting with it! Flipper only has
get() so we will show you what it's like to play with both of them.
1. get() function
We set the initial value of the Flipper contract
false when we instantiated the contract. Let's check that this is the case.
In the Message to Send section, select the "get(): bool" message and accept the default values for the other options.
Press "Read" and confirm that it returns the value
2. flip() function
So let's make the value turn
The alternative message to send with the UI is
flip(). Again, accept the default values for the other options and click Call
If the transaction was successful, we should then be able to go back to the
get() function and see our updated storage:
Woohoo! You deployed your first smart contract!