Normally, events are emitted with meaningful fields so that off-chain indexers and applications can react to changes in the contract state (e.g., logging who change the password or when it was updated).
In this contract, the SetNewSecret
event is declared without any fields. This makes it impossible for off-chain consumers to identify useful information (such as the sender, the secret identifier, or a timestamp). As a result, the event provides little to no value.
Likelihood: High
This will always occur since the event is defined as empty.
Impact: Low
The event is emitted but does not provide any actionable information.
Off-chain systems cannot distinguish between different secret updates or track meaningful changes.
Emit an event by calling set_secret
Count the event emitted with event::emitted_events<SetNewSecret>()
Show that is impossible to access field of event because it is empty
It is recommended to include relevant fields (e.g., owner and timestamp) in the event so that off-chain applications can properly track and audit contract activity.
This is an Informational finding. It has no impact on the security of the protocol.
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.