romanman 28012ac1c8 Adapting for Ethereym as a library style:
+ moving Serpent samples inside the studio
2014-09-04 22:10:23 +03:00

10 lines
247 B
Plaintext

// The sample demonstrates how you
// can simply create a program running
// on top of chain and saving values for
// futre use
if !(contract.storage[msg.data[0]]):
contract.storage[msg.data[0]] = msg.data[1]
return(1)
else:
return(0)