The setURI function in the MembershipERC1155 contract allows the DAO creator to set a new URI for all token types. However, the function does not emit an event when the URI is changed. Emitting an event when the URI is changed is a good practice as it provides transparency and allows off-chain systems to track changes.
Implementation
Issue: The function changes the URI without emitting an event, which can make it difficult to track changes to the URI.
Recommendation: Add an event emission to the setURI function to notify when the URI is changed. Here is a suggested implementation:
Define the Event: Add an event definition for URI changes.
Emit the Event: Modify the setURI function to emit the URIChanged event.
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.