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.