public/subjects/blockchain/artists-do-work
nprimo 4fa5c876a7 docs: run prettify and move h1 to h2 2023-06-09 09:17:48 +01:00
..
README.md docs: run prettify and move h1 to h2 2023-06-09 09:17:48 +01:00

README.md

Artists Do Work

Artists deserve to be payed too! Along the way, we will learn payments and divisions in Solidity

Instructions

  • Create a Smart Contract ArtistsDoWork with a function buyTicket() that takes no parameters and allows a user to buy a ticket paying 0.1 ether or more.
  • Add the addRemuneratedArtist() function that takes as parameters an address to register an artist in the festival. Only the organizer that deployed the Smart Contract can trigger that function
  • Add a function getPayed() that takes no parameters and that allows an artist, registered with the function above, to receive 1 Ether once, providing that there are enough funds in the Smart Contract!

Notions