ARTIST = 0x8802b7f0bfa5e9f5825f2fc708e1ad00d2c2b5d6 // Make sure we have enough gas to run the contact //if tx.value < tx.basefee * 200: // If not, stop // stop // If the message is from the artist if msg.datasize == 1 and msg.sender == ARTIST: // Add the work to the catalog contract.storage[msg.data[0]] = 1 return(1) // check inclusion elif msg.datasize == 1: // Check whether the artwork is in the catalog return(contract.storage[msg.data[0]]) // Otherwise else: return(0)