2014-05-29 13:24:37 +00:00
|
|
|
|
2014-06-17 17:40:56 +00:00
|
|
|
// The sample demonstrates how you
|
|
|
|
// can simply create a program running
|
|
|
|
// on top of chain and saving values for
|
|
|
|
// futre use
|
2014-05-29 13:24:37 +00:00
|
|
|
if !(contract.storage[msg.data[0]]):
|
|
|
|
contract.storage[msg.data[0]] = msg.data[1]
|
|
|
|
return(1)
|
|
|
|
else:
|
|
|
|
return(0)
|