From 588bd60332cf9ee41c25030a35d00923c5e6ddf8 Mon Sep 17 00:00:00 2001 From: Italo <45588475+italodamato@users.noreply.github.com> Date: Fri, 24 Mar 2023 13:56:13 +0000 Subject: [PATCH] set UseSTD3ASCIIRules = true for normalization --- namehash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namehash.go b/namehash.go index 2e1b84f..5462a88 100644 --- a/namehash.go +++ b/namehash.go @@ -27,7 +27,7 @@ var pStrict = idna.New(idna.MapForLookup(), idna.StrictDomainName(true), idna.Tr // Normalize normalizes a name according to the ENS rules func Normalize(input string) (output string, err error) { - output, err = p.ToUnicode(input) + output, err = pStrict.ToUnicode(input) if err != nil { return }