bug: decodeEventLog returns an array without topics #1821
Unanswered
jagnani73
asked this question in
Idea / Feature Request
Replies: 1 comment 2 replies
-
Args are decoded into an array as one of the arguments are unnamed – which is intentional behaviour. Could possibly look into its index being the name to preserve the object. Going to close this as it isn't really a bug, but will convert into a discussion to continue the conversation. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an existing issue for this?
Package Version
^1.16.6
Current Behavior
If the ABI event has any input without a name, the following issues occur in decodeEventLog:
Expected Behavior
Steps To Reproduce
a. abi: https://etherscan.io/address/0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f#code:~:text=Contract%20ABI,Export%20ABI
b. data:
0x0000000000000000000000006cf029fe9c585f666255ff021c5114b6225a7bb0000000000000000000000000000000000000000000000000000000000004ac9c
c. topics:
['0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9', '0x0000000000000000000000008f6e363022a5612003d62f2d29ac5ea6b37bb1e0', '0x000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2']
d. eventName:
PairCreated
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
No response
Anything else?
The expected result is achieved by modifying the ABI and putting a name for the unnamed input
Beta Was this translation helpful? Give feedback.
All reactions