Explore variable types in Solidity
In this story, we will explore the variable types you can use when you develop a smart contract in Solidity.
We will a smart contract in a new workspace Solidity-Playground
:
The uint8 type
In first, let’s see the variable type uint8
.
For that, let’s create a basic smart contract.
Because I’m lazy, I copy paste the header of the smart contract 3_Ballot.sol
, automatically created by Remix, to get the licence and the Solidity version.