From 08bfaa54520494e997d786f95fea5d8581413df4 Mon Sep 17 00:00:00 2001 From: TheDemx27 Date: Sun, 15 Jan 2023 23:06:19 -0600 Subject: [PATCH] Fixes typo in example code and documents --- docs/zkapps/tutorials/01-hello-world.mdx | 2 +- examples/zkapps/01-hello-world/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/zkapps/tutorials/01-hello-world.mdx b/docs/zkapps/tutorials/01-hello-world.mdx index f6be02dbf..ea161747e 100644 --- a/docs/zkapps/tutorials/01-hello-world.mdx +++ b/docs/zkapps/tutorials/01-hello-world.mdx @@ -399,7 +399,7 @@ Now let's try adding a transaction that should fail - updating the state to `75` 54 const txn2 = await Mina.transaction(senderAccount, () => { 55 zkAppInstance.update(Field(75)); 56 }); - 57 await txn1.prove(); + 57 await txn2.prove(); 58 await txn2.sign([senderKey]).send(); 59 } catch (ex: any) { 60 console.log(ex.message); diff --git a/examples/zkapps/01-hello-world/src/main.ts b/examples/zkapps/01-hello-world/src/main.ts index eb11936ea..57655f9be 100644 --- a/examples/zkapps/01-hello-world/src/main.ts +++ b/examples/zkapps/01-hello-world/src/main.ts @@ -54,7 +54,7 @@ try { const txn2 = await Mina.transaction(senderAccount, () => { zkAppInstance.update(Field(75)); }); - await txn1.prove(); + await txn2.prove(); await txn2.sign([senderKey]).send(); } catch (ex: any) { console.log(ex.message);