Created
November 7, 2019 17:19
-
-
Save critesjosh/c224fc5d27bd1cd458fa0f4151e23ae0 to your computer and use it in GitHub Desktop.
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; | |
| // Rinkeby address: 0x49Bb098E781eD5C50D85E82d85cbA1a6F03FD3e6 | |
| contract SimpleStorage { | |
| uint storedData; | |
| event storageUpdate(uint newValue, address updatedBy); | |
| function set(uint x) public { | |
| storedData = x; | |
| emit storageUpdate(x, msg.sender); | |
| } | |
| function get() public view returns (uint) { | |
| return storedData; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment