Custom and numbered work examples updated to work without byte arrays. Revisit this...
[robmyers:artworld-ethereum.git] / serpent / owned_work_that_confirms_owner.se
1 OWNER = 0x7c8999dc9a822c1f0df42023113edb4fdd543266
2
3 // Make sure we have enough gas to run the contact
4 if tx.value < tx.basefee * 100:
5     // If not, stop
6     stop
7
8 // If the Ethereum address sent matches the owner
9 if msg.data[0] == OWNER:
10     // Return true
11     return(1)
12 // Otherwise
13 else:
14     // Return false
15     return(0)