Michael.W基于Foundry精读Openzeppelin第21期------ERC165.sol
-
-
- [0. 版本](#0. 版本)
-
- [0.1 ERC165.sol](#0.1 ERC165.sol)
- [1. 目标合约](#1. 目标合约)
- [2. 代码精读](#2. 代码精读)
-
- [2.1 IERC165](#2.1 IERC165)
-
- [2.1.1 interfaceId的计算方式](#2.1.1 interfaceId的计算方式)
- [2.2 ERC165](#2.2 ERC165)
-
- [2.2.1 supportsInterface(bytes4 interfaceId)](#2.2.1 supportsInterface(bytes4 interfaceId))
- [2.2.2 foundry代码验证](#2.2.2 foundry代码验证)
-
0. 版本
openzeppelin\]:v4.8.3,\[forge-std\]:v1.5.6
#### 0.1 ERC165.sol
Github: