setAdmin
should emit an event when the adminAddress
is updated to a new _newAdmin
In setAdmin
the adminAddress
is being updated to a new admin but not emitting any events.
It is best practice to emit an event when there is update in storage data, especially in the case of an admin address. Emitting events for storage updates, like admin address changes, enhances transparency for off-chain tracking, strengthens security by detecting malicious actions, and simplifies debugging and integration with frontends or external systems.
VSCode
Add an UpdatedAdminAddress
event in setAdmin
,
Code suggestions or observations that do not pose a direct security risk.
Code suggestions or observations that do not pose a direct security risk.
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.