-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adhere to new events api in web3py 7.5.0 #149
Comments
This was referenced Dec 3, 2024
Closed
slundqui
added a commit
that referenced
this issue
Dec 5, 2024
This PR updates pypechain to work with web3py v7.6. Solves both #149 and #150. Includes version bump to v0.0.48. ## Breaking Changes - `my_contract.events.MyEvent` is no longer a type, but instead the instantiated object. This means calls to e.g., `events.MyEvent().process_receipt_typed()` will now be `events.MyEvent.process_receipt_typed()`. ## Major changes - Changing handling of `my_contract.events`. Note overloaded events still are not implemented. - Adding new pypechain class `PypechainOverloadedFunctions` that acts as a wrapper to the underlying overloaded functions. - Delay calling the overloaded function factory until the arguments gets bound to the contract function. ## Minor changes - Pin web3py to v7.6 for futureproofing. - Separate makefile builds to test and example. - Using solidity compiler 0.8.24 for test gen.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This PR in web3py breaks event handling in pypechain. We likely need to (1) use the new getter functions and cast to our custom objects, or (2) solve #124 (which specifies event arguments) to solve. Pinning web3py requirement to be < 7.5.0 for the time being.
The text was updated successfully, but these errors were encountered: