From d439016806dfc233ec503f94b39a56588057788a Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Wed, 9 Feb 2022 10:10:11 +0100 Subject: [PATCH] Minor fixes Signed-off-by: Sebastian Martinez --- src/base/registrations/resolver.ts | 2 +- src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/registrations/resolver.ts b/src/base/registrations/resolver.ts index 160faca9b..5e993ab25 100644 --- a/src/base/registrations/resolver.ts +++ b/src/base/registrations/resolver.ts @@ -10,7 +10,7 @@ export async function setRecords(name: string, records: EnsRecord[], resolver: E assert(config.signer, "no signer available"); const resolverContract = new ethers.Contract(resolver.address, config.abi.resolver, config.signer); - const node = ethers.utils.namehash(`${name}`); + const node = ethers.utils.namehash(name); const calls = []; const iface = new ethers.utils.Interface(config.abi.resolver); diff --git a/src/utils.ts b/src/utils.ts index c4ec3fb52..263403df3 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -312,7 +312,7 @@ export async function identifyAddress(address: string, config: Config): Promise< // Resolve a label under the radicle domain. export async function resolveLabel(label: string | undefined, config: Config): Promise { - if (label) return config.provider.resolveName(`${label}`); + if (label) return config.provider.resolveName(label); return null; }