2. Solidity Basics
// SPDX-License-Identifier: MIT
// Specify solidity version here
// ^ means any version greater than specified one will work
// >=0.8.7 <0.9.0
pragma solidity ^0.8.7;
// EVM, Ethereum Virtual Machine
// We can deploy solidity code to all evm compatible blockchains
// Avalanche, Fantom, Polygoncontract SimpleStorage {
// DATA TYPES
// boolean, uint, int, string, address, bytes
// This gets initialized to zero!
uint256 public favNumber;
// FUNCTIONS
function store(uint256 _favNumber) public {
favNumber = _favNumber;
}Last updated