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.

18 lines
533 B

# Lineup
For this to be a good festival, you need to register artists. Hip hip hip, arrays!
### Instructions
- Create a new Smart Contract `Lineup`.
- Create a function `addArtist(string)` that takes as parameter a string. Artists are added in their order of registration.
- Create a function`lineup(uint)` that given an index returns the name of corresponding artist.
### Hint
Public variables offer an implicit getter function
### Notions
- [solidity docs: arrays](https://docs.soliditylang.org/en/v0.8.4/types.html#arrays)