mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.1 KiB
1.1 KiB
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