Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Missing event emission on state variable update in constructor

Vulnerability Details

s_owner is updated but no event is emitted.

18: constructor() {
19: s_owner = msg.sender;
20: }

Impact

Although not serious, off-chain tracking can be affected if an event is not emitted. This emit could be used for any purpose off-chain and limiting it in the current implementation of the contract is not the best option.

Tools Used

Manual Review

Recommendations

Emit an OwnerUpdated() event to enable correct off-chain tracking.

18: constructor() {
19: s_owner = msg.sender;
20: emit OwnerUpdated(msg.sender);
21: }
Updates

Lead Judging Commences

inallhonesty Lead Judge
about 2 years ago
inallhonesty Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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