ethereumj-personal/samples/namecoin.se

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)