diff --git a/dank_mids/brownie_patch/contract.py b/dank_mids/brownie_patch/contract.py index 5ca6bbc4..f0e2ddcc 100644 --- a/dank_mids/brownie_patch/contract.py +++ b/dank_mids/brownie_patch/contract.py @@ -160,7 +160,14 @@ def __init__(self, *args, **kwargs): This method sets up lazy initialization for contract methods. """ super().__init__(*args, **kwargs) - # get rid of the contract call objects, we can materialize them on a jit basis + self.__post_init__() + + def __post_init__(self) -> None: + """ + Get rid of the contract call objects so we can materialize them on a JIT basis. + + This method sets up lazy initialization for contract methods. + """ for name in self.__method_names__: if name in {"_name", "_owner"}: # this is a property defined on _ContractBase and cannot be written to