Skip to content

Commit

Permalink
add 0x
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Aug 5, 2022
1 parent 5f4ed51 commit 53cf919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ensjs/src/utils/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function decodeLabelhash(hash: string) {
throw Error('Expected encoded labelhash to have a length of 66')
}

return `${hash.slice(1, -1)}`
return `0x${hash.slice(1, -1)}`
}

export function encodeLabelhash(hash: string) {
Expand Down

0 comments on commit 53cf919

Please sign in to comment.