From b215bb69b3595f83747cf12d64cac4c6f8547023 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Fri, 24 May 2024 17:56:06 +0000 Subject: [PATCH] update contract --- test-contracts/erc165/ERC165Supported.sol | 8 -------- test-contracts/erc165/InvalidERC165.sol | 8 -------- test-contracts/erc165/NonERC165.sol | 10 +--------- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/test-contracts/erc165/ERC165Supported.sol b/test-contracts/erc165/ERC165Supported.sol index 88eb287..eb6f001 100644 --- a/test-contracts/erc165/ERC165Supported.sol +++ b/test-contracts/erc165/ERC165Supported.sol @@ -5,14 +5,6 @@ import {IERC165} from "../../lib/forge-std/src/interfaces/IERC165.sol"; /// A contract that implements erc165 contract ERC165Supported is IERC165 { - function externalFn() external pure returns (bool) { - return internalFn(true); - } - - function internalFn(bool val) internal pure returns (bool) { - return val; - } - function supportsInterface(bytes4 interfaceID) external pure returns (bool) { return (interfaceID == type(IERC165).interfaceId); } diff --git a/test-contracts/erc165/InvalidERC165.sol b/test-contracts/erc165/InvalidERC165.sol index 7f2b176..2efc941 100644 --- a/test-contracts/erc165/InvalidERC165.sol +++ b/test-contracts/erc165/InvalidERC165.sol @@ -3,14 +3,6 @@ pragma solidity =0.8.25; /// A contract that doesnt implement erc165, but has supportsInterface method contract InvalidERC165 { - function externalFn() external pure returns (bool) { - return internalFn(true); - } - - function internalFn(bool val) internal pure returns (bool) { - return val; - } - function supportsInterface(bytes4 interfaceID) external pure returns (bool) { (interfaceID); return true; diff --git a/test-contracts/erc165/NonERC165.sol b/test-contracts/erc165/NonERC165.sol index 07e8219..9c1b6ef 100644 --- a/test-contracts/erc165/NonERC165.sol +++ b/test-contracts/erc165/NonERC165.sol @@ -2,12 +2,4 @@ pragma solidity =0.8.25; /// A contract that doesnt implement erc165 -contract NonERC165 { - function externalFn() external pure returns (bool) { - return internalFn(); - } - - function internalFn() internal pure returns (bool) { - return true; - } -} +contract NonERC165 {}