Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 14_Interface/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ abstract contract InsertionSort{

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

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

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

Expand Down