Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10
Adding Permissions and Payments
- Use dummy token faucet to get dummy tokens
- Use ex5a_i_have_dtk() to show you managed to use the faucet (2 pts)
- Create a function to allow breeder registration.
- This function should charge the registrant for a fee, paid in dummy tokens (check registration_price)
- Add permissions. Only allow listed breeders should be able to create animals
- Deploy your new contract
- Call submit_exercise() in the Evaluator to configure the contract you want evaluated
- Call ex5b_register_breeder() to prove your function works. If needed, send dummy tokens first to the evaluator (2pts)