From 70abc28c710a17eb6d987ea468eeddce78325a36 Mon Sep 17 00:00:00 2001 From: tate Date: Tue, 18 Jul 2023 14:04:07 +1000 Subject: [PATCH] return hex --- packages/ensjs/src/utils/contentHash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ensjs/src/utils/contentHash.ts b/packages/ensjs/src/utils/contentHash.ts index aeb8102f..cb536713 100644 --- a/packages/ensjs/src/utils/contentHash.ts +++ b/packages/ensjs/src/utils/contentHash.ts @@ -86,7 +86,7 @@ export function getProtocolType(encoded: string) { return { protocolType: protocolType as NonNullable, decoded } } -export function encodeContentHash(text: string) { +export function encodeContentHash(text: string): Hex { const typeData = getProtocolType(text) if (!typeData) throw new InvalidContentHashError()