Functions aka Transitions
Transitions are functions that change the value of mutable variables and can communicate with other contracts.
The first transition, setHello, takes a String as input, updates welcome_msg and informs the caller of the success/failure.
The second transition, getHello, simply sends out a message to the caller with the current value of welcome_msg.
Voir la critique complète