Skip to content

Commit

Permalink
perf: apply suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: MathisGD <[email protected]>
Signed-off-by: Merlin Egalite <[email protected]>
  • Loading branch information
MerlinEgalite and MathisGD authored Oct 22, 2024
1 parent 489e172 commit 1d11f55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/MorphoTokenOptimism.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ contract MorphoTokenOptimism is Token, IOptimismMintableERC20 {
/// @param _interfaceId Interface ID to check.
/// @return Whether or not the interface is supported by this contract.
function supportsInterface(bytes4 _interfaceId) external pure returns (bool) {
bytes4 interfaceERC165 = type(IERC165).interfaceId;
bytes4 interfaceOptimismMintableERC20 = type(IOptimismMintableERC20).interfaceId;
return _interfaceId == interfaceERC165 || _interfaceId == interfaceOptimismMintableERC20;
return _interfaceId == type(IERC165).interfaceId || _interfaceId == type(IOptimismMintableERC20).interfaceId;
}
}

0 comments on commit 1d11f55

Please sign in to comment.