Skip to content

Commit

Permalink
add missing 0x prefix to hex string
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Oct 30, 2023
1 parent e26be47 commit 88afc4b
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 @@ -142,7 +142,7 @@ export class JoyApi {
return this.api.tx.members.giftMembership({
rootAccount: account,
controllerAccount: account,
handle: createType('Bytes', Buffer.from(handle).toString('hex')),
handle: createType('Bytes', '0x' + Buffer.from(handle).toString('hex')),
metadata: createType(
'Bytes',
'0x' +
Expand Down

0 comments on commit 88afc4b

Please sign in to comment.