Lab: Solidity Basics - The Blockchain Messenger
In the previous section you setup remix and already compiled and interacted with a smart contract. But you donāt have much solidity knowledge yet.
In this section weāre build a Smart Contract called āThe Blockchain Messengerā. šŖš»
The goal is very simple: This one will save a message on the Blockchain, readable to everyone, write able only to the person who deployed to contract.
We also count how many times the message was updated.
At the end of the section you should have a better understanding of the most important value types in solidity, a special kind of variable type called address, the important global msg-object and a few of its properties. You will also know the basic structures like read/write functions and constructors.
In this section weāre going to continue using Remix, as well as the JavaScript VM for that. Iāll introduce the theory you need to complete the project first and then weāre putting it all together. Or you challenge yourself and, after going through the theory, try to complete the project yourself first and then simply compare it to my sample solution. No matter what you do, I hope youāre here to learn some solidity stuff, so letās dive into it!
Video
What You Know At The End Of The Lab
š§ Familiarize yourself with Types of Variables
š Get Insights into Solidity quirks and specials
š” Be able to bring your own ideas to life!
Get Started
šŖ šŖ šŖ Letās get started