Skip to content

Getting Error while decoding data emitted from an event #3986

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

You must be logged in to vote

Thanks.

There is definitely something wrong with the ABI or the data. To encode a bytes, the first 32 bytes of the data represent the offset, in this case it should be 0x0000…080 (it must start with 62 0’s and then 80). But you can see there is a bunch of non-zero data in the first 32 bytes, it’s invalid data for that ABI.

Since the offset is a 32-byte number (i.e. 0x6f6e…), is huge, it is larger than the total data available, that is why it is a numeric overflow.

My guess is the ABI is incorrect. Where did you get it from?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@aduttya
Comment options

@ricmoo
Comment options

Answer selected by aduttya
@aduttya
Comment options

@ricmoo
Comment options

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