foundry icon indicating copy to clipboard operation
foundry copied to clipboard

fix: validate indexed arguments count in `cast logs`

Open maradini77 opened this issue 1 month ago • 0 comments

When using cast logs with an event signature and indexed arguments, extra arguments beyond the number of indexed inputs are silently ignored. This causes the filter to be broader than expected, potentially matching unintended events, which is problematic for automated scripts and monitoring tools.

The issue occurs because build_filter_event_sig uses zip() to pair event inputs with user-provided arguments, and any excess arguments are simply dropped without notification.

maradini77 avatar Nov 24 '25 14:11 maradini77