You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Languages/en/14_Interface_en/readme.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ other Dapps and smart contracts will know how to interact with it. Because it pr
53
53
54
54
In addition, the interface is equivalent to the contract `ABI` (Application Binary Interface),
55
55
and they can be converted to each other: compiling the interface contract will give you the contract `ABI`,
56
-
and [abi-to-sol tool](https://gnidan.github.io/abi-to-sol/) will convert the `ABI` back to the interface contract.
56
+
and [abi-to-sol tool](https://gnidan.github.io/abi-to-sol/) will convert the `ABI` back to the interface contract.
57
57
58
58
We take the `IERC721` contract, the interface for the `ERC721` token standard, as an example. It consists of 3 events and 9 functions,
59
59
which all `ERC721` contracts need to implement. In the interface, each function ends with `;` instead of the function body `{ }`. Moreover, every function in the interface contract is by default `virtual`, so you do not need to label the function as `virtual` explicitly.
@@ -86,8 +86,8 @@ interface IERC721 is IERC165 {
86
86
87
87
### IERC721 Event
88
88
`IERC721` contains 3 events.
89
-
-`Transfer` event: emitted during transfer, records the sending address `from`, the receiving address `to`, and `tokenid`.
90
-
-`Approval` event: emitted during approval, records the token owner address `owner`, the approved address `approved`, and `tokenid`.
89
+
-`Transfer` event: emitted during transfer, records the sending address `from`, the receiving address `to`, and `tokenId`.
90
+
-`Approval` event: emitted during approval, records the token owner address `owner`, the approved address `approved`, and `tokenId`.
91
91
-`ApprovalForAll` event: emitted during batch approval, records the owner address `owner` of batch approval, the approved address `operator`, and whether the approve is enabled or disabled `approved`.
0 commit comments