Skip to content

Commit

Permalink
Merge pull request #1573 from carver/update-ens-mainnet-address
Browse files Browse the repository at this point in the history
Update mainnet ENS registrar address
  • Loading branch information
carver authored Jan 31, 2020
2 parents aa18fb8 + 53c28d0 commit 802c6f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ens/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from eth_typing import (
ChecksumAddress,
HexAddress,
HexStr,
)
Expand All @@ -15,3 +16,5 @@
EMPTY_ADDR_HEX = HexAddress(HexStr('0x' + '00' * 20))

REVERSE_REGISTRAR_DOMAIN = 'addr.reverse'

ENS_MAINNET_ADDR = ChecksumAddress(HexAddress(HexStr('0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e')))
5 changes: 1 addition & 4 deletions ens/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Address,
ChecksumAddress,
HexAddress,
HexStr,
)
from eth_utils import (
is_binary_address,
Expand All @@ -25,6 +24,7 @@
from ens import abis
from ens.constants import (
EMPTY_ADDR_HEX,
ENS_MAINNET_ADDR,
REVERSE_REGISTRAR_DOMAIN,
)
from ens.exceptions import (
Expand Down Expand Up @@ -59,9 +59,6 @@
)


ENS_MAINNET_ADDR = ChecksumAddress(HexAddress(HexStr('0x314159265dD8dbb310642f98f50C066173C1259b')))


class ENS:
"""
Quick access to common Ethereum Name Service functions,
Expand Down
3 changes: 3 additions & 0 deletions newsfragments/1573.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ENS had to release a new registry to push a bugfix. See
`this article <https://medium.com/the-ethereum-name-service/ens-registry-migration-bug-fix-new-features-64379193a5a>`_
for background information. Web3.py uses the new registry for all default ENS interactions, now.

0 comments on commit 802c6f5

Please sign in to comment.