Skip to content

Commit

Permalink
fix hash check on handle
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Nov 1, 2023
1 parent 75e02dd commit baa1571
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
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(Buffer.from(handle).toString('hex'))
const handleHash = blake2AsHex(Buffer.from(handle))
const storageSize = await this.api.query.members.memberIdByHandleHash.size(
handleHash
)
Expand Down
18 changes: 0 additions & 18 deletions src/test.ts

This file was deleted.

0 comments on commit baa1571

Please sign in to comment.