Created
September 6, 2019 14:06
-
-
Save rpaskin/587d9f695ca8186f24a36861cfccc252 to your computer and use it in GitHub Desktop.
Simple solidity example, from https://solidity.readthedocs.io/en/v0.5.11/introduction-to-smart-contracts.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.0 <0.7.0; | |
// See https://solidity.readthedocs.io/en/v0.5.11/introduction-to-smart-contracts.html | |
contract SimpleStorage { | |
uint storedData; | |
function set(uint x) public { | |
storedData = x; | |
} | |
function get() public view returns (uint) { | |
return storedData; | |
} | |
} | |
// On Ropsten @ 0x0e289dddd43d844ea0ea750679f9418d2505c897 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment