Skip to content

Commit

Permalink
get latest from main
Browse files Browse the repository at this point in the history
  • Loading branch information
barriebyron authored Jan 24, 2024
1 parent f990c95 commit d07d979
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -253,7 +253,7 @@ Finally, this code adds the `update()` function:
16
17 @method update(square: Field) {
18 const currentState = this.num.get();
19 this.num.assertEquals(currentState);
19 this.num.requireEquals(currentState);
20 square.assertEquals(currentState.mul(currentState));
21 this.num.set(square);
22 }
Expand Down

0 comments on commit d07d979

Please sign in to comment.