def __init__(self, provider=default, addr=None):
        """
        :param provider: a single provider used to connect to Ethereum
        :type provider: instance of `web3.providers.base.BaseProvider`
        :param hex-string addr: the address of the ENS registry on-chain. If not provided,
            ENS.py will default to the mainnet ENS registry address.
        """
        self.web3 = init_web3(provider)

        ens_addr = addr if addr else ENS_MAINNET_ADDR
        self.ens = self.web3.eth.contract(abi=abis.ENS, address=ens_addr)
        self._resolverContract = self.web3.eth.contract(abi=abis.RESOLVER)
def __init__ ( self , provider = default , addr = None ) : self . web3 = init_web3 ( provider ) ens_addr = addr if addr else ENS_MAINNET_ADDR self . ens = self . web3 . eth . contract ( abi = abis . ENS , address = ens_addr ) self . _resolverContract = self . web3 . eth . contract ( abi = abis . RESOLVER )
:param provider: a single provider used to connect to Ethereum
        :type provider: instance of `web3.providers.base.BaseProvider`
        :param hex-string addr: the address of the ENS registry on-chain. If not provided,
            ENS.py will default to the mainnet ENS registry address.