Skip to content

Instantly share code, notes, and snippets.

@critesjosh
Created November 7, 2019 17:19
Show Gist options
  • Select an option

  • Save critesjosh/c224fc5d27bd1cd458fa0f4151e23ae0 to your computer and use it in GitHub Desktop.

Select an option

Save critesjosh/c224fc5d27bd1cd458fa0f4151e23ae0 to your computer and use it in GitHub Desktop.
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