// Indicates the Solidity version miners should run the code with // The ^ sign means it shouldn't run on version 0.5.0 or above pragma solidity ^0.4.16; // Smart Contract Decleration // This creates a new contract named EmptyContract contract BasicContract { // Variable Declaration // uint - The type of the declared variable // value - The name for the declared variable // 10 - Some value to store in the variable uint i = 10; // Function Decleration // function - The 'function' keyword is used to declare a new function // myFunction - The name for the declared function // uint _someVar - An input the function expects to receive which // will be stored in a uint typed variable named _someVar // // The () should contain a list of all the function required inputs function myFunction(uint _someVar) { } }
0.4.20