From fe36cb5520c48d98769632d016120a3effa44eca Mon Sep 17 00:00:00 2001 From: Javier Amaya <47435376+JavierAmaya@users.noreply.github.com> Date: Wed, 19 Feb 2025 16:20:47 -0600 Subject: [PATCH] Update tutorial-passkeys.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The NextJs template needs to import a function that is used in the tutorial, otherwise it gives an error. Personally, the example using Sepolia as a chain does not work for me; when the userOp is executed, it gives an error, saying that it cannot find the chain.id in the viem CHAIN ​​object. --- docs/pages/sdk/getting-started/tutorial-passkeys.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/pages/sdk/getting-started/tutorial-passkeys.mdx b/docs/pages/sdk/getting-started/tutorial-passkeys.mdx index c38a0a2..48643ff 100644 --- a/docs/pages/sdk/getting-started/tutorial-passkeys.mdx +++ b/docs/pages/sdk/getting-started/tutorial-passkeys.mdx @@ -24,6 +24,7 @@ Open `app/page.tsx`. We will be working on this file for the rest of the tutori ## Create a ZeroDev project For this tutorial, [create a ZeroDev project](https://dashboard.zerodev.app) for Sepolia. +If doesn't work for Sepolia , try to creating a BaseSepolia Project in the dashboard, is the best option tested. On `app/page.tsx`, fill out these variables with the URLs found on your dashboard. @@ -33,6 +34,12 @@ const PAYMASTER_URL = "" const PASSKEY_SERVER_URL = "" ``` +Add on the top of the NextJs Template: + +```ts + import { getUserOperationGasPrice } from "@zerodev/sdk/actions"; +``` + ## Create a smart account using passkeys Let's hook up the `Register` and `Login` buttons so they actually do something.