Beatland Festival

First Flight #44
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Impact: low
Likelihood: high
Invalid

Missing Event Emission on Organizer Update

Description:
The setOrganizer function updates the organizer state variable but does not emit any event to signal this change.

function setOrganizer(address _organizer) public onlyOwner {
organizer = _organizer;
}

Impact:
Off-chain Visibility Gap: Off-chain indexers and UIs cannot detect that the organizer address has changed without performing costly on-chain calls or periodic state snapshots.

Mitigation:
Define and emit an event, for example:

event OrganizerUpdated(address indexed previousOrganizer, address indexed newOrganizer);
function setOrganizer(address _organizer) public onlyOwner {
address old = organizer;
organizer = _organizer;
emit OrganizerUpdated(old, _organizer);
}

This ensures all state transitions are recorded in the logs for reliable off-chain indexing and monitoring.

Updates

Lead Judging Commences

inallhonesty Lead Judge 26 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Missing events / Events not properly configured

Informational. This protocol doesn't rely on events to function, they are just nice to have, but not mandatory.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.