Skip to content

Commit

Permalink
Fixes typo in example code and documents
Browse files Browse the repository at this point in the history
  • Loading branch information
rpopplewell committed Jan 16, 2023
1 parent 8f610fd commit 08bfaa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/zkapps/tutorials/01-hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion examples/zkapps/01-hello-world/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 08bfaa5

Please sign in to comment.