diff --git a/docs/middleware.rst b/docs/middleware.rst index f89191a285..baf3869982 100644 --- a/docs/middleware.rst +++ b/docs/middleware.rst @@ -40,6 +40,7 @@ Sync middlewares include: Async middlewares include: * ``gas_price_strategy`` +* ``name_to_address`` * ``attrdict`` * ``validation`` * ``gas_estimate`` @@ -66,6 +67,7 @@ AttributeDict ~~~~~~~~~~~~~~~~~~~~~ .. py:method:: web3.middleware.name_to_address_middleware + web3.middleware.async_name_to_address_middleware This middleware converts Ethereum Name Service (ENS) names into the address that the name points to. For example :meth:`w3.eth.send_transaction ` will diff --git a/web3/middleware/__init__.py b/web3/middleware/__init__.py index ee54134a46..76fc62ed45 100644 --- a/web3/middleware/__init__.py +++ b/web3/middleware/__init__.py @@ -67,6 +67,7 @@ geth_poa_middleware, ) from .names import ( # noqa: F401 + async_name_to_address_middleware, name_to_address_middleware, ) from .normalize_request_parameters import ( # noqa: F401