From 267778274626d35b87c6a8d4bd0baa4ba0c71f43 Mon Sep 17 00:00:00 2001 From: Kadircan Bozkurt <67785258+kadirchan@users.noreply.github.com> Date: Mon, 25 Nov 2024 01:53:24 +0300 Subject: [PATCH] Docs: Update permissions.mdx --- docs/zkapps/writing-a-zkapp/feature-overview/permissions.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zkapps/writing-a-zkapp/feature-overview/permissions.mdx b/docs/zkapps/writing-a-zkapp/feature-overview/permissions.mdx index f175f0e29..dd0eaa566 100644 --- a/docs/zkapps/writing-a-zkapp/feature-overview/permissions.mdx +++ b/docs/zkapps/writing-a-zkapp/feature-overview/permissions.mdx @@ -226,7 +226,7 @@ tx = await Mina.transaction(account1Address, async () => { await zkapp.withdraw(UInt64.from(1e9)); }); await tx.prove(); -await tx.sign([account1Key, zkappKey]).send(); +await tx.sign([account1Key]).send(); ``` In contrast to the other examples, you don't explicitly create an `AccountUpdate`. Instead, you instantiate `UnsecureContract` and call its `withdraw()` method. Each method call is automatically associated with an account update, for which it creates a valid proof. You can access and modify this account update by using `this` inside the method.