Skip to content

Instantly share code, notes, and snippets.

@wemeetagain
Created April 6, 2014 19:33
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 wemeetagain/10010529 to your computer and use it in GitHub Desktop.
Save wemeetagain/10010529 to your computer and use it in GitHub Desktop.
naive eth-mail
if tx.sender == CONTRACTCREATOR:
if tx.data[0] == 1:
suicide(CONRACTCREATOR)
else:
NEXTINDEX = contract.storage[999]
contract.storage[1000 + NEXTINDEX] = tx.data[0]
contract.storage[999] = NEXTINDEX + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment