Skip to content

Commit 9ad0d8d

Browse files
authored
update interface (#873)
2 parents 6e91347 + 7f8ec13 commit 9ad0d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

14_Interface/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ abstract contract InsertionSort{
4444

4545
虽然接口不实现任何功能,但它非常重要。接口是智能合约的骨架,定义了合约的功能以及如何触发它们:如果智能合约实现了某种接口(比如`ERC20``ERC721`),其他Dapps和智能合约就知道如何与它交互。因为接口提供了两个重要的信息:
4646

47-
1. 合约里每个函数的`bytes4`选择器,以及函数签名`函数名(每个参数类型)`
47+
1. 合约里每个函数的函数签名`函数名(每个参数类型)`,以及`bytes4`选择器(通过对函数签名哈希运算后取前 4 字节获得)
4848

4949
2. 接口id(更多信息见[EIP165](https://eips.ethereum.org/EIPS/eip-165)
5050

0 commit comments

Comments
 (0)