Skip to content

Commit

Permalink
Merge pull request imperviousinc#24 from apbigcod/resolve-punycodes
Browse files Browse the repository at this point in the history
Support for resolving TLDs with punycodes
  • Loading branch information
buffrr authored Mar 31, 2023
2 parents d6fd74c + 3699a6e commit 0b0b8fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/resolvers/ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ func (e *Ethereum) GetResolverAddress(node, registryAddress string) (common.Addr
return common.Address{}, err
}

addr, err := registry.Resolver(nil, EnsNode(node))
normalizedName, err := Normalize(node)
if err != nil {
return common.Address{}, err
}

addr, err := registry.Resolver(nil, EnsNode(normalizedName))
if err != nil {
return common.Address{}, err
}
Expand Down

0 comments on commit 0b0b8fb

Please sign in to comment.