diff --git a/ens/main.py b/ens/main.py index 0e22d32075..4d62e35690 100644 --- a/ens/main.py +++ b/ens/main.py @@ -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 diff --git a/newsfragments/2318.bugfix.rst b/newsfragments/2318.bugfix.rst new file mode 100644 index 0000000000..7b69a5600c --- /dev/null +++ b/newsfragments/2318.bugfix.rst @@ -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. \ No newline at end of file