Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unindexed event arg filtering support for get_logs #3078

Merged
merged 6 commits into from Aug 24, 2023

Conversation

fselmo
Copy link
Collaborator

@fselmo fselmo commented Aug 15, 2023

What was wrong?

  • Contract event get_logs() has support for argument_filters but it only works on indexed event arguments. This feature seems to work on non-indexed args for create_filter() / build_filter(). It is ideal to achieve some parity in the same argument for get_logs() by allowing it here as well.

How was it fixed?

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@fselmo fselmo force-pushed the update-get-logs-params branch 5 times, most recently from 6fdb44e to 02ff291 Compare August 16, 2023 21:27
fselmo added a commit to fselmo/web3.py that referenced this pull request Aug 16, 2023
@fselmo fselmo marked this pull request as ready for review August 16, 2023 21:29
fselmo added a commit to fselmo/web3.py that referenced this pull request Aug 16, 2023
- Contract event ``get_logs()`` has support for ``argument_filters`` but it only works on indexed event arguments. This feature works on unindexed args for ``create_filter()`` / ``build_filter()``. It is ideal to achieve some parity in the same argument for ``get_logs()`` by allowing it here as well.
Co-authored-by: Paul Robinson <5199899+pacrob@users.noreply.github.com>
Copy link
Contributor

@pacrob pacrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@fselmo fselmo merged commit 3df41ac into ethereum:main Aug 24, 2023
84 checks passed
fselmo added a commit that referenced this pull request Aug 24, 2023
@fselmo fselmo deleted the update-get-logs-params branch April 3, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recompile test contracts with new Solidity version: v0.8.21
2 participants