The ERC-721 standard defines Transfer event that has to be emitted with each token transfer, containing 3 topics:
1st indexed topic is the sender address
2nd indexed topic is the recipient address
3rd indexed topic is the token ID
The ERC-20 standard defines a very similar Transfer event, also with 3 topics. But the 3rd topic, representing the amount of transferred tokens, is not indexed.
So when you look at the event logs produced by this transaction, there are two Transfer events. Both of them have the 3rd topic non-indexed, meaning they are transferring ERC-20 tokens - not NFTs. If they were transferring NFTs, the 3rd topic would be indexed.
发布评论
评论(1)
erc-721 标准标准定义
Transfer
必须要进行的事件在每个令牌传输中发出,包含3个主题:索引
主题是发件人地址索引
主题是收件人地址索引>索引
主题>主题是令牌IDerc-20 标准标准定义了非常相似的
传输事件,也有3个主题。但是,代表转移令牌数量的第三个主题是不是索引。
因此,当您查看转移事件。他们俩都没有第三个主题,这意味着它们正在转移ERC-20令牌 - 而不是NFT。如果他们转移NFT,则第三个主题将为<代码>索引。
The ERC-721 standard defines
Transfer
event that has to be emitted with each token transfer, containing 3 topics:indexed
topic is the sender addressindexed
topic is the recipient addressindexed
topic is the token IDThe ERC-20 standard defines a very similar
Transfer
event, also with 3 topics. But the 3rd topic, representing the amount of transferred tokens, is not indexed.So when you look at the event logs produced by this transaction, there are two
Transfer
events. Both of them have the 3rd topic non-indexed, meaning they are transferring ERC-20 tokens - not NFTs. If they were transferring NFTs, the 3rd topic would beindexed
.