Skip to content

Commit ccd1425

Browse files
committed
Update some documentation around ENS
1 parent 601a68a commit ccd1425

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/abi_types.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ Ethereum Addresses
2020

2121
All addresses must be supplied in one of three ways:
2222

23-
* While connected to mainnet, an Ethereum Name Service name (often in the form ``myname.eth``)
2423
* A 20-byte hexadecimal that is checksummed using the `EIP-55
2524
<https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md>`_ spec.
26-
* A 20-byte binary address.
25+
* A 20-byte binary address (python bytes type).
26+
* While connected to an Ethereum Name Service (ENS) supported chain, an ENS name
27+
(often in the form ``myname.eth``).
2728

2829
Disabling Strict Bytes Type Checking
2930
------------------------------------

docs/middleware.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ AttributeDict
7272
accept .eth names in the 'from' and 'to' fields.
7373

7474
.. note::
75-
This middleware only converts ENS names if invoked with the mainnet
76-
(where the ENS contract is deployed), for all other cases will result in an
77-
``InvalidAddress`` error
75+
This middleware only converts ENS names on chains where the proper ENS
76+
contracts are deployed to support this functionality. All other cases will
77+
result in a ``NameNotFound`` error.
7878

7979
Gas Price Strategy
8080
~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)