Skip to content

Commit

Permalink
Feature/ens request (#2319)
Browse files Browse the repository at this point in the history
* fixed ens contract function called twice

* newsfragment
  • Loading branch information
dbfreem authored Jan 26, 2022
1 parent ffe59da commit ec1c9fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ens/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def resolve(self, name: str, get: str = 'addr') -> Optional[Union[ChecksumAddres
address = lookup_function(namehash).call()
if is_none_or_zero_address(address):
return None
return lookup_function(namehash).call()
return address
else:
return None

Expand Down
1 change: 1 addition & 0 deletions newsfragments/2318.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In ENS the contract function to resolve an ENS address was being called twice in error. One of those calls was removed.

0 comments on commit ec1c9fe

Please sign in to comment.