Project

One World
NFTDeFi
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

MembershipERC1155.sol is not EIP-1155 compliant

Summary

MembershipERC1155.sol does not follow the URI specifications of EiP-1155.

Vulnerability Details

The contract supports IERC1155MetadataURI through AccessControlUpgradeable.

function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165) returns (bool) {
return
interfaceId == type(IERC1155).interfaceId ||
interfaceId == type(IERC1155MetadataURI).interfaceId ||
super.supportsInterface(interfaceId);
}

As a result, it has to conform to the EIP-1155 expectations.

Particularly,

Changes to the URI MUST emit the URI event if the change can be expressed with an event (i.e. it isn’t dynamic/programmatic).

setURI() doesn't emit an event.

function setURI(string memory newURI) external onlyRole(DAO_CREATOR) {
_setURI(newURI);
}

Impact

Not EIP-1155 compliant

Tools Used

Manual Review

Recommendations

Follow the EIP-1155 specifications

Updates

Lead Judging Commences

0xbrivan2 Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
0xbrivan2 Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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