Here is a contract that can assert that it is art.
init: contract.storage = "may be" code: if msg.data == "toggle": if contract.storage == "is": contract.storage = "is not" else: contract.storage = "is"
It toggles its status as art when sent a message instructing it to do so.
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.