Open mubarak23 opened 22 hours ago
I am applying to this issue via OnlyDust platform.
Mid level Cairo Developer
I will write a function that takes an event_id and the caller's address as parameters, then update the has_rsvp field in the EventRegistration details for the specified event_id to true. Also, I will make sure the function verifies if the caller has previously registered for the event before allowing the update. Finally, include the test for the function.
I am applying to this issue via OnlyDust platform.
I am a software engineer with strong technical skills and expertise in writing complex scalable applications. I have written and tested some advanced Cairo and Solidity smart contracts like building and testing the Synthetix staking contract using Cairo: https://github.com/casweeney/cairo-synthentix-staking. I have also written and tested a more complex smart contract in Cairo that involves giving multiple token as rewards to user. See repo: https://github.com/casweeney/staking-multiple-reward-tokens
I have contributed to some groundbreaking protocols like Hyperbridge: https://github.com/polytope-labs/hyperbridge/graphs/contributors and my GitHub account has a lot of proof of work.
Leveraging on my skills and experience, I am confident in my ability to tackle new challenges and also solve complex technical issues.
This task requires creating a function for registered user to RSVP for an event. I will first add the function signature in the IEvent interface, then implement the function that takes in the event_id, then I will check if the caller has registered for the event in which the id was passed, if true, I will update the has_rsvp
property of the EventRegistration struct to TRUE.
As someone who register for the event, i should be able to RSVP for the event i registered for
update has_rsvp inside EventRegistration details to TRUE, this function should be call by someone who has register for the event.
Write unit test for the function