Skip to content

Commit

Permalink
fix(container): return only 'IContainer' interfaceId for ERC-165
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielstoica committed Jul 9, 2024
1 parent 08b70e6 commit 5c422a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Container.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ contract Container is IContainer, ModuleManager {

/// @inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) public pure override returns (bool) {
return
interfaceId == type(IContainer).interfaceId ||
interfaceId == type(IModuleManager).interfaceId ||
interfaceId == type(IERC165).interfaceId;
return interfaceId == type(IContainer).interfaceId || interfaceId == type(IERC165).interfaceId;
}
}

0 comments on commit 5c422a1

Please sign in to comment.