mirror of https://github.com/01-edu/public.git
4fa5c876a7 | ||
---|---|---|
.. | ||
README.md |
README.md
Organised Festival
In order for your festival to be properly managed, you need to define an organizer. The organizer will be the only user to have the right to modify certain properties. By default, you will define the organizer as the contract's deployer.
Instructions
- Create a new Smart contract
OrganizedFestival
. - Add a
constructor
function that takes as parameter auint
to represent the date of the festival and astring
to register its place (Like inTimeAndPlace
). - Add functions
getStartTime
andgetPlace
that retrieve the starting time and place. - Add functions
updateStartTime
andupdatePlace
that update the corresponding value only if the caller of the function is the organizer (which should be the original deployer of the Smart Contract).
Hint
The constructor function might save the address of the deployer of the contract in an internal variable