From 9c589fa5664fd5573131e7b47201904e4865dc48 Mon Sep 17 00:00:00 2001 From: Julian Sinn Date: Sun, 8 Jun 2025 07:33:18 +0200 Subject: [PATCH 1/2] Update kernelVersion in tutorial.mdx you have to add the kernelVersion in the signerToEcdsaValidator function. --- docs/pages/sdk/getting-started/tutorial.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/pages/sdk/getting-started/tutorial.mdx b/docs/pages/sdk/getting-started/tutorial.mdx index 7c9bdcf..8817304 100644 --- a/docs/pages/sdk/getting-started/tutorial.mdx +++ b/docs/pages/sdk/getting-started/tutorial.mdx @@ -77,6 +77,7 @@ Add the following code to create the ECDSA validator: ```typescript import { signerToEcdsaValidator } from "@zerodev/ecdsa-validator" +import {KERNEL_V3_1} from "@zerodev/sdk/constants"; const main = async () => { // other code... @@ -84,6 +85,7 @@ const main = async () => { const ecdsaValidator = await signerToEcdsaValidator(publicClient, { // [!code focus] signer, // [!code focus] entryPoint, // [!code focus] + kernelVersion, // [!code focus] }) // [!code focus] } ``` @@ -227,4 +229,4 @@ In this tutorial, we were able to mint an NFT without paying gas, thanks to gas For next steps: - Check out [the core API](/sdk/core-api/create-account) to learn more about the SDK -- Read some [code examples](https://github.com/zerodevapp/zerodev-examples) of using ZeroDev \ No newline at end of file +- Read some [code examples](https://github.com/zerodevapp/zerodev-examples) of using ZeroDev From 4a0fd8e88c724704b9566501420bea58cffd68af Mon Sep 17 00:00:00 2001 From: Julian Sinn Date: Sun, 8 Jun 2025 07:45:08 +0200 Subject: [PATCH 2/2] Update kernelVersion in tutorial.mdx just a small fix, without the kernelVersion in the signerToEcdsaValidator function a receive an error. --- docs/pages/sdk/getting-started/tutorial.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/sdk/getting-started/tutorial.mdx b/docs/pages/sdk/getting-started/tutorial.mdx index 8817304..d45ca67 100644 --- a/docs/pages/sdk/getting-started/tutorial.mdx +++ b/docs/pages/sdk/getting-started/tutorial.mdx @@ -85,7 +85,7 @@ const main = async () => { const ecdsaValidator = await signerToEcdsaValidator(publicClient, { // [!code focus] signer, // [!code focus] entryPoint, // [!code focus] - kernelVersion, // [!code focus] + kernelVersion: KERNEL_V3_1, // [!code focus] }) // [!code focus] } ```