Created
March 20, 2018 04:32
-
-
Save tpmccallum/c155ac7cb51dc70a60303a4a7e244393 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
``` | |
#State variables | |
**helloMessage: public(bytes32)** | |
owner: public(address) | |
#Constructor | |
@public | |
def __init__(_message: bytes32): | |
#Sets the message which is passed in at execution | |
self.helloMessage = _message | |
#Sets the owner at initialization | |
self.owner = msg.sender | |
@public | |
@constant | |
def sayHello() -> bytes32: | |
#Returns the helloMessage | |
return self.helloMessage | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment