Skip to content

Convert long zeroes log.data to shorter log.data #3941

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

You must be logged in to vote

You can use the abiCoder.decode(types, data).

For example, if the data is an address and a uint256. You can use abiCoder.decode([ "addresss", "uint" ], data). You must know the types you are trying to decode though.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cryptofuture
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