diff --git a/src/pages/tutorials/use-passkey-as-backup-signer.md b/src/pages/tutorials/use-passkey-as-backup-signer.md index 8c5898c005c..a50b7a1ca20 100644 --- a/src/pages/tutorials/use-passkey-as-backup-signer.md +++ b/src/pages/tutorials/use-passkey-as-backup-signer.md @@ -123,13 +123,14 @@ Once the calldata is prepared, send it to your smart account address to register ```ts import { PublicKey } from 'ox' +import { toHex } from 'viem' import { HybridDeleGator, P256Owner } from '@metamask/delegation-toolkit/contracts' // Deserialize the compressed public key. const publicKey = PublicKey.fromHex(credential.publicKey) const p256Owner: P256Owner = { - keyId: credential.id, + keyId: toHex(credential.id), x: publicKey.x, y: publicKey.y, }