Skip to content

Commit ec1c9fe

Browse files
authored
Feature/ens request (#2319)
* fixed ens contract function called twice * newsfragment
1 parent ffe59da commit ec1c9fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ens/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def resolve(self, name: str, get: str = 'addr') -> Optional[Union[ChecksumAddres
245245
address = lookup_function(namehash).call()
246246
if is_none_or_zero_address(address):
247247
return None
248-
return lookup_function(namehash).call()
248+
return address
249249
else:
250250
return None
251251

newsfragments/2318.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
In ENS the contract function to resolve an ENS address was being called twice in error. One of those calls was removed.

0 commit comments

Comments
 (0)