Events are necessary to be emitted for front end applications to read on-chain data of a contract or for developers to recover lost contract data due to unexpected situations like serious bugs or rekt.
create and emit enough events for the functions as shown below.
increaseValuesOfParticipants
- emit to log when a user challenges to increase nft characteristics and emit if ram is selected.
selectRamIfNotSelected
- emit when ram is selected
killRavana
- emit when ravana is killed
withdraw
- emit when ram withdraws
RamNFT::setChoosingRamContract
- emit when ChoosingRam contract address is set.
updateCharacteristics
- emit when characteristics of an nft are updated.
logging is important for any application. failure to do so, will result in not knowing what happened and why behind it hence difficult to debug.
for eg. you can write events like this and emit them. make sure to follow (CEI) design patter to check, emit and then interact
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.