Closed
Description
Working on #3540, I noticed a lot of the code that was cleaned up there can ideally be removed from the contract.py
and async_contract.py
into base_contract.py
since the code is nearly identical. The biggest issue I can see to resolve may be the typing, which is why this warrants a separate issue since it's out of the scope of that PR.
Investigate the following, and perhaps other cases:
- refactor
__call__()
inContractFunction
(+ respective async code) toBaseContractFunction
- refactor
__getattr__()
,__getitem__()
and__iter__()
inContractEvents
andContractFunctions
(+ respective async code) toBaseContractEvents
andBaseContractFunctions
, respectively.
Metadata
Metadata
Assignees
Labels
No labels