Skip to content

Conversation

kclowes
Copy link
Collaborator

@kclowes kclowes commented Sep 6, 2024

Builds on #3476, so will need to merge that before merging this.

What was wrong?

ContractEvents were breaking when called as a class method.

Related to Issue #2124
Closes #1648

How was it fixed?

Basically just added a @combomethod decorator. @reedsa did the hard work :)

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-->

reedsa added a commit to reedsa/web3.py that referenced this pull request Sep 16, 2024
@kclowes
Copy link
Collaborator Author

kclowes commented Sep 18, 2024

Closing. This gets handled in #3476

@kclowes kclowes closed this Sep 18, 2024
reedsa added a commit to reedsa/web3.py that referenced this pull request Oct 17, 2024
reedsa added a commit to reedsa/web3.py that referenced this pull request Oct 18, 2024
reedsa added a commit that referenced this pull request Oct 21, 2024
* Contract APIs for event elements in a contract ABI

Contract utils for `get_event_by_name`, `get_event_by_signature`, `get_event_by_selector`, `get_event_by_topic`
Contract utils for `find_events_by_name`, `find_events_by_signature`, `find_events_by_selector`, `find_events_by_topic`

* Newsfragment for #3472

* Apply changes from #3479

* Allow optional parens on events for sync and async contracts

* Tests for overlapping function/event names

* Corrections per feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ContractEvent.processLog (and others?) break when used as classmethod
2 participants