Created
April 6, 2014 20:01
-
-
Save wemeetagain/10010830 to your computer and use it in GitHub Desktop.
naive message board
This file contains 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
// data[0] = topic | |
// data[1] = message | |
if tx.data[0]: | |
NEXTINDEX = contract.storage[sha3(tx.data[0])] | |
contract.storage[sha3(tx.data[0]) + 1 + NEXTINDEX] = tx.data[1] | |
contract.storage[sha3(tx.data[0])] = NEXTINDEX + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment