Skip to content

Instantly share code, notes, and snippets.

@tpmccallum
Created March 20, 2018 04:32
Show Gist options
  • Save tpmccallum/c155ac7cb51dc70a60303a4a7e244393 to your computer and use it in GitHub Desktop.
Save tpmccallum/c155ac7cb51dc70a60303a4a7e244393 to your computer and use it in GitHub Desktop.
```
#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