bug: decodeEventLog
does partial decode when ABI parameter has no name
#2081
Labels
Good First Issue
Misc: Good First Issue
Is there an existing issue for this?
Package Version
Confirmed on 1.21.4 and 2.9.9 (stackblitz)
Current Behavior
If an ABI event parameter
name
is undefined or is the empty string (""
),decodeEventLog
seems to partially decode it. This happens even if the number of indexed/non-indexed parameters in the ABI item match the logdata
/topics
, and regardless of thestrict
option.Expected Behavior
I expected
decodeEventLog
to return the arguments as an array, ordered the same way as the ABI parameters, omitting all argument names but still decoding all arguments properly.Steps To Reproduce
See stackblitz
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
https://stackblitz.com/edit/viem-getting-started-jv9nkz?file=index.ts
Anything else?
No response
The text was updated successfully, but these errors were encountered: