Created
June 10, 2020 06:34
-
-
Save cyberliem/d5f5038dd03244b4ae4fa0de0b041d61 to your computer and use it in GitHub Desktop.
Simple storage
This file contains 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.5.10; | |
contract SimpleStorage { | |
mapping(uint => uint) testData; | |
function set(uint x, uint y) public { | |
testData[x]=y; | |
} | |
function get(uint x) public view returns (uint) { | |
return testData[x]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment