Skip to content

Instantly share code, notes, and snippets.

@akegaviar
Created September 24, 2020 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akegaviar/d98bfd5b55d5883a4b5b7470a4a52aed to your computer and use it in GitHub Desktop.
Save akegaviar/d98bfd5b55d5883a4b5b7470a4a52aed to your computer and use it in GitHub Desktop.
message: public(bytes[32])
@public
def __init__():
self.message = "Hello, Block! In Vyper!"
@public
@constant
def printMessage() -> bytes[32]:
return self.message
@public
def setMessage(_message: bytes[32]):
self.message = _message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment