From 19655ab50ab30b0393d87fc76f2da77ca3742779 Mon Sep 17 00:00:00 2001 From: AyushBherwani1998 Date: Mon, 20 Oct 2025 22:32:05 +0400 Subject: [PATCH] fix code snippet --- src/pages/tutorials/use-passkey-as-backup-signer.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, }