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.
![]() |
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
README.md
Time and Place
To be considered a festival, you need to initially specify a time and a place. Everything else can be organized later.
You will use a constructor function to set the time and place when the Smart Contract is deployed.
Instructions
- Create a new Smart Contract
TimeAndPlace
. - The Smart Contract contains a special
constructor()
function that takes as parameter auint
, that is a Unix timestamp representation of the date of the beginning of the festival, and astring
that is the address of the festival. - Create a function
getStartTime()
that returns the starting time and date of the festival as a Unix timestamp. - Create a function
getPlace()
that returns the place of the festival.