You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function overloading is broken with update v7.6.0 in web3py, due to abi validation when calling contract function factories without arguments. We likely can fix when the option to turn off abi validation gets implemented.
v7.6.0 does fix #149 in the case where there are no event overloading (which pypechain currently doesn't support).
The text was updated successfully, but these errors were encountered:
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.
Function overloading is broken with update v7.6.0 in web3py, due to abi validation when calling contract function factories without arguments. We likely can fix when the option to turn off abi validation gets implemented.
v7.6.0 does fix #149 in the case where there are no event overloading (which pypechain currently doesn't support).
The text was updated successfully, but these errors were encountered: