Structure of a Contract
Structure of a Contract
State Variables
pragma solidity >=0.4.0 <0.6.0;
contract SimpleStorage {
uint storedData; // State variable
// ...
}Functions
pragma solidity >=0.4.0 <0.6.0;
contract SimpleAuction {
function bid() public payable { // Function
// ...
}
}Function Modifiers
Events
Struct Types
Enum Types
Last updated
Was this helpful?