Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mainnet ENS registrar address #1573

Merged
merged 2 commits into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.