Skip to content

Commit

Permalink
return hex
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Jul 18, 2023
1 parent 9cf065c commit 70abc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ensjs/src/utils/contentHash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function getProtocolType(encoded: string) {
return { protocolType: protocolType as NonNullable<ProtocolType>, decoded }
}

export function encodeContentHash(text: string) {
export function encodeContentHash(text: string): Hex {
const typeData = getProtocolType(text)
if (!typeData) throw new InvalidContentHashError()

Expand Down

0 comments on commit 70abc28

Please sign in to comment.