Skip to content

Commit

Permalink
missing 0x prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Oct 30, 2023
1 parent 88afc4b commit a491585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joyApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class JoyApi {
}

async handleIsAlreadyRegistered(handle: string): Promise<boolean> {
const handleHash = blake2AsHex(createType('Bytes', Buffer.from(handle).toString('hex')))
const handleHash = blake2AsHex(createType('Bytes', '0x' + Buffer.from(handle).toString('hex')))
const storageSize = await this.api.query.members.memberIdByHandleHash.size(
handleHash
)
Expand Down

0 comments on commit a491585

Please sign in to comment.