Created
August 19, 2017 13:05
-
-
Save TheBojda/6a1b50e87c189427a26f8741d689b10d to your computer and use it in GitHub Desktop.
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.4.7; | |
contract SimpleStorage { | |
uint public storedData; | |
event TestEvent(address from, uint value); | |
function SimpleStorage(uint initialValue) { | |
storedData = initialValue; | |
} | |
function set(uint x) { | |
storedData = x; | |
TestEvent(msg.sender, x); | |
} | |
function get() constant returns (uint retVal) { | |
return storedData; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment