Closed code423n4 closed 3 years ago
shw
In the contract ERC1155HolderUpgradeable, the function supportsInterface is not fully implemented, leading to errors for other contracts/Dapps that call this function. See the ERC165 specification for details.
ERC1155HolderUpgradeable
supportsInterface
Referenced code: ERC1155HolderUpgradeable.sol#L29-L34
None
Implement the function by using a mapping to store the supported interfaces, as shown in the ERC165Storage.sol implementation from OpenZeppelin.
Added
Handle
shw
Vulnerability details
Impact
In the contract
ERC1155HolderUpgradeable
, the functionsupportsInterface
is not fully implemented, leading to errors for other contracts/Dapps that call this function. See the ERC165 specification for details.Proof of Concept
Referenced code: ERC1155HolderUpgradeable.sol#L29-L34
Tools Used
None
Recommended Mitigation Steps
Implement the function by using a mapping to store the supported interfaces, as shown in the ERC165Storage.sol implementation from OpenZeppelin.