Skip to content

parseLog - Deferred error during ABI decoding triggered accessing property "to" #2735

Answered by ricmoo
TRCSamurai asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this error indicates that the data is invalid, but ethers tries to keep things together as long as possible, so that if you, for example, didn't require the to, it won't fail.

If you look at the above topics,

// id("Transfer(address, address,uint256)")
topic0 = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"

// The indexed `from`
topic1 = "0x00000000000000000000000073c9cc436c1249394d1ea28bf1d9f2217da006f4"

// The indexed `to`
topic2 = "0x4567000000000000000000000000000000000000000000000000000000000000"

// The `value`
data = "0x0000000000000000000000000000000000000000000000000000000000000000"

As you can see the value for topic2 is invalid. It has 2 bytes (4 ni…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TRCSamurai
Comment options

Answer selected by TRCSamurai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2734 on February 23, 2022 09:05.