Ethereum - This Contract Is Art
2014-07-22Here is a contract that can assert that it is art.
init: contract.storage[1000] = "may be"It toggles its status as art when sent a message instructing it to do so.
code: if msg.data[0] == "toggle": if contract.storage[1000] == "is": contract.storage[1000] = "is not" else: contract.storage[1000] = "is"
Here's what the UI for the contract looks like:

Here it is while the artistic state of the contract is being toggled:

And here it is after being toggled:

Anyone can change the contract from not being art to being art (and vice versa). We'll look at a more advanced contract that uses behavioural economics to address this next.