Skip to content

Interface.parseLog throws out-of-bounds error when parsing transfer event #2871

Answered by ricmoo
0x-ten asked this question in Q&A
Discussion options

You must be logged in to vote

Your ABI doesn't match your log. Your ABI indicates 2 indexed properties (from and to), while your log has 3 indexed properties (1 topic for the event name and 3 additional topics, each mapping to an indexed property).

My guess is that your ABI should read "event Transfer(address indexed from, address indexed to, uint256 indexed value)" (notice the addition of indexed to value).

Make sense?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0x-ten
Comment options

Answer selected by 0x-ten
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 #2870 on April 06, 2022 19:36.