Skip to content

Conversation

@Aerilym
Copy link
Contributor

@Aerilym Aerilym commented Feb 16, 2025

What was wrong?

Related to Issue #3617
Closes #3617

How was it fixed?

See description of #3617

Todo:

  • Clean up commit history
  • Add or update documentation related to these changes
  • Add entry to the release notes

Cute Animal Picture

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

@Aerilym
Copy link
Contributor Author

Aerilym commented Feb 16, 2025

Put a lot of details in the issue #3617 happy to expand on it or add more to this contribution. This just fixed my issue for what I'm doing so thought I'd get the ball rolling

@Aerilym
Copy link
Contributor Author

Aerilym commented Feb 16, 2025

I made a change to make sure the final output works if you have address and/or contract_address as a list or string. Also de-duplicated but just using address if they're the same. Also had to do some gymnastics to get the linter to like the type hints, not sure if that resulted in the best solution.

@Aerilym
Copy link
Contributor Author

Aerilym commented Feb 16, 2025

The linting is still unhappy, would love some direction on how you want the type hinting to work in this section? as there is no type assertion in if blocks it seems overly strict

@reedsa reedsa force-pushed the fix/construct_event_filter_parms_with_address_list branch from ab3e8c4 to 91a53c2 Compare May 8, 2025 16:03
reedsa pushed a commit to Aerilym/web3.py that referenced this pull request May 8, 2025
@reedsa reedsa requested review from fselmo, kclowes and pacrob May 8, 2025 16:09
@reedsa reedsa self-assigned this May 8, 2025
@reedsa
Copy link
Contributor

reedsa commented May 8, 2025

@Aerilym Thanks for the contribution here and apologies for being slow to respond here! I figured out a way to make types cooperate and also make the validation simpler. Have a look and let us know if there's anything further you'd like to add.

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

LGTM, just left one question!

@reedsa reedsa force-pushed the fix/construct_event_filter_parms_with_address_list branch from cf48683 to 85fecdf Compare May 9, 2025 23:44
@Aerilym
Copy link
Contributor Author

Aerilym commented May 10, 2025

@Aerilym Thanks for the contribution here and apologies for being slow to respond here! I figured out a way to make types cooperate and also make the validation simpler. Have a look and let us know if there's anything further you'd like to add.

Thanks for picking up this PR, we've been using these changes in production had no issues. Can't think of any other related changes needed.

@reedsa reedsa requested a review from kclowes May 12, 2025 16:42
Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

@reedsa nice elegant solution with the set check, lgtm 👍🏼

@reedsa reedsa merged commit 1d97bcd into ethereum:main May 12, 2025
85 checks passed
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.

construct_event_filter_params improperly formats addresses as lists of lists

4 participants