Skip to content

Commit

Permalink
Clarify that the ABI belongs to ENS Public Resolver 2
Browse files Browse the repository at this point in the history
- rename ``RESOLVER`` constant to ``PUBLIC_RESOLVER_2`` to better clarify what ABI we are trying to use as default
  • Loading branch information
fselmo committed Jul 6, 2023
1 parent dcc3df4 commit 425af16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ens/abis.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@
},
]

RESOLVER = [
PUBLIC_RESOLVER_2 = [
{
"inputs": [{"internalType": "contract ENS", "name": "_ens", "type": "address"}],
"payable": False,
Expand Down
2 changes: 1 addition & 1 deletion ens/async_ens.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(

ens_addr = addr if addr else ENS_MAINNET_ADDR
self.ens = self.w3.eth.contract(abi=abis.ENS, address=ens_addr)
self._resolver_contract = self.w3.eth.contract(abi=abis.RESOLVER)
self._resolver_contract = self.w3.eth.contract(abi=abis.PUBLIC_RESOLVER_2)
self._reverse_resolver_contract = self.w3.eth.contract(
abi=abis.REVERSE_RESOLVER
)
Expand Down
2 changes: 1 addition & 1 deletion ens/ens.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(

ens_addr = addr if addr else ENS_MAINNET_ADDR
self.ens = self.w3.eth.contract(abi=abis.ENS, address=ens_addr)
self._resolver_contract = self.w3.eth.contract(abi=abis.RESOLVER)
self._resolver_contract = self.w3.eth.contract(abi=abis.PUBLIC_RESOLVER_2)
self._reverse_resolver_contract = self.w3.eth.contract(
abi=abis.REVERSE_RESOLVER
)
Expand Down

0 comments on commit 425af16

Please sign in to comment.