File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,16 @@ interface IERC721 is IERC165 {
117117
118118### IERC721事件
119119` IERC721 ` 包含3个事件,其中` Transfer ` 和` Approval ` 事件在` ERC20 ` 中也有。
120- - ` Transfer ` 事件:在转账时被释放,记录代币的发出地址` from ` ,接收地址` to ` 和` tokenid ` 。
121- - ` Approval ` 事件:在授权时释放,记录授权地址` owner ` ,被授权地址` approved ` 和` tokenid ` 。
120+ - ` Transfer ` 事件:在转账时被释放,记录代币的发出地址` from ` ,接收地址` to ` 和` tokenId ` 。
121+ - ` Approval ` 事件:在授权时释放,记录授权地址` owner ` ,被授权地址` approved ` 和` tokenId ` 。
122122- ` ApprovalForAll ` 事件:在批量授权时释放,记录批量授权的发出地址` owner ` ,被授权地址` operator ` 和授权与否的` approved ` 。
123123
124124### IERC721函数
125125- ` balanceOf ` :返回某地址的NFT持有量` balance ` 。
126126- ` ownerOf ` :返回某` tokenId ` 的主人` owner ` 。
127127- ` transferFrom ` :普通转账,参数为转出地址` from ` ,接收地址` to ` 和` tokenId ` 。
128128- ` safeTransferFrom ` :安全转账(如果接收方是合约地址,会要求实现` ERC721Receiver ` 接口)。参数为转出地址` from ` ,接收地址` to ` 和` tokenId ` 。
129- - ` approve ` :授权另一个地址使用你的NFT。参数为被授权地址` approve ` 和` tokenId ` 。
129+ - ` approve ` :授权另一个地址使用你的NFT。参数为被授权地址` to ` 和` tokenId ` 。
130130- ` getApproved ` :查询` tokenId ` 被批准给了哪个地址。
131131- ` setApprovalForAll ` :将自己持有的该系列NFT批量授权给某个地址` operator ` 。
132132- ` isApprovedForAll ` :查询某地址的NFT是否批量授权给了另一个` operator ` 地址。
You can’t perform that action at this time.
0 commit comments