Convert to ace and to current Serpent. Some errors with return() will be fixed soon...
[robmyers:artworld-ethereum.git] / contract / ownership_registry.se
1 //if tx.value < tx.basefee * 200:
2     // If not enough gas, stop
3 //    stop
4
5 // If data was provided, it won't overwrite the code, and the artwork is unregistered
6 if msg.datasize == 1 and msg.data[0] > 1000 and contract.storage[msg.data[0]] == 0:
7     // Set the owner to be the sender
8     contract.storage[msg.data[0]] = msg.sender
9     return(1)
10 else:
11     // Do nothing
12     return(0)