The changeOwner
function in the MysteryBox
contract updates the contract's owner state without emitting an event to notify external systems or users of the ownership change.
An ownership change in changeOwner
occurs without emitting an event:
Without an event, external systems and users cannot easily track when ownership changes occur. This reduces the auditability of the contract’s operations and makes it harder to detect unauthorized ownership changes.
Manual Review
Consider emitting events to notify users about any modifications of such importance in the contracts’ business logic.
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.