We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e91347 commit 7f8ec13Copy full SHA for 7f8ec13
14_Interface/readme.md
@@ -44,7 +44,7 @@ abstract contract InsertionSort{
44
45
虽然接口不实现任何功能,但它非常重要。接口是智能合约的骨架,定义了合约的功能以及如何触发它们:如果智能合约实现了某种接口(比如`ERC20`或`ERC721`),其他Dapps和智能合约就知道如何与它交互。因为接口提供了两个重要的信息:
46
47
-1. 合约里每个函数的`bytes4`选择器,以及函数签名`函数名(每个参数类型)`。
+1. 合约里每个函数的函数签名`函数名(每个参数类型)`,以及`bytes4`选择器(通过对函数签名哈希运算后取前 4 字节获得)。
48
49
2. 接口id(更多信息见[EIP165](https://eips.ethereum.org/EIPS/eip-165))
50
0 commit comments