Skip to content

Commit

Permalink
Remove extra normalize_name() since resolver() normalizes the…
Browse files Browse the repository at this point in the history
… name
  • Loading branch information
fselmo committed Jun 23, 2023
1 parent 3087fb2 commit a9433ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ens/async_ens.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,8 @@ async def get_text(self, name: str, key: str) -> str:
:raises ResolverNotFound: If no resolver is found for the provided name
"""
node = raw_name_to_hash(name, ensip15=self.ensip15_normalization)
normal_name = normalize_name(name, ensip15=self.ensip15_normalization)

r = await self.resolver(normal_name)
r = await self.resolver(name)
if r:
if await _async_resolver_supports_interface(r, GET_TEXT_INTERFACE_ID):
return await r.caller.text(node, key)
Expand Down

0 comments on commit a9433ff

Please sign in to comment.