OwnershipNFTs.sol is not ERC721 compliant, doesnt implement the ERC165 interface. #161
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-49
edited-by-warden
grade-b
Q-06
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_56_group
AI based duplicate group recommendation
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a8246076044905/pkg/sol/OwnershipNFTs.sol#L13
Vulnerability details
Bug Description
The contract OwnershipNFTs is supposed to be an ERC721 standard contract but it lacks the ERC165's
supportInterface()
function which is mandatory for all erc721 contracts as stated by the eip-721Lack of the
supportInterface()
function will cause issues for external contracts that interact with the OwnershipNFTs.sol as they will be unable to verify the behaviour of the OwnershipNFTs i.e if it does indeed support ERC721 functions.Further reading
Impact
OwnershipNFTs.sol is not ERC-721 compliant as it doesnt implement the ERC165 interface.
Tools Used
Manual review
Recommended Mitigation Steps
Implement the ERC165 interface in OwnershipNFTs.sol
Assessed type
ERC721
The text was updated successfully, but these errors were encountered: