The RankedChoice::selectPresident()
function updates critical state variables, such as the current president, without emitting an event. This limits the transparency and auditability of the election process, making it difficult for off-chain systems to track when a new president is selected. Event emissions are vital for logging significant state changes and improving the interaction between smart contracts and external systems.
Manual review
Introduce an event, PresidentSelected, that is emitted whenever a new president is chosen. This will improve the transparency, auditability, and overall reliability of the election process.
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.