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.




In the CryptoDevOps publication, Bruno Delb, DevOps coach, blockchain developer, and Cloud expert shares experiences and practices of DevOps applied to blockchain technologies.

Recommended from Medium

AWS Certified Solution Architect — Associate: Databases

Java Support for Large Memory Pages

How to learn programming faster and more productive

N-ary Tree Preorder Traversal

N-ary Tree Preorder traversal

Create a Simple Ruby Gem

DR and Dev Environment architecture for a WordPress Blog

The Elixir Language: Year in Review

Hashing : probing methods

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.

More from Medium

Track gas consumption in transactions on the Ethereum blockchain with Hardhat

Check if IP Address is a Bot Client Threat in Node.js

How to build a Lightning Authentication Api from scratch

Consortium blockchain solution on Hyperledger Fabric with 3 organizations