Skip to content

Instantly share code, notes, and snippets.

@wemeetagain
Created April 6, 2014 20:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wemeetagain/10010923 to your computer and use it in GitHub Desktop.
Save wemeetagain/10010923 to your computer and use it in GitHub Desktop.
basic friend list
if tx.sender != CONTRACTCREATOR:
stop
if tx.data[0] == 0:
contract.storage[1000+tx.value[1]] = tx.value[2]
elif tx.data[0] == 1:
suicide(CONTRACTCREATOR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment