Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contract Coiners {
- enum EmozioniPersona { felice, triste, normale }
- EmozioniPersona persona;
- function getEmozione() public view returns (uint) {
- return uint(persona);
- }
- function setFelice() returns(uint){
- persona = EmozioniPersona.felice;
- return uint(persona);
- }
- function setTriste() returns(uint){
- persona = EmozioniPersona.triste;
- return uint(persona);
- }
- function setNormale() returns(uint){
- persona = EmozioniPersona.normale;
- return uint(persona);
- }
- }
Add Comment
Please, Sign In to add comment