Mystery Box

First Flight #25
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Missing event emission for ownership change

Summary

The changeOwner function does not emit an event when ownership is changed. This makes it difficult for external systems and users to track and verify ownership changes, reducing transparency and audibility in the contract.

Vulnerability Details

no event is emitted for the ownership transfer.

Impact

No event is emitted, making it harder to track ownership changes externally.

Tools Used

manual

Recommendations

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\
function changeOwner(address _newOwner) public {
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
Updates

Appeal created

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!