Skip to content

Commit 7bb456d

Browse files
committed
refactor(Add.ts): improve comments in Add contract for better clarity and accuracy
1 parent eed0324 commit 7bb456d

File tree

1 file changed

+3
-2
lines changed
  • templates/project-ts/src

1 file changed

+3
-2
lines changed

templates/project-ts/src/Add.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import { AddProgramProof } from './AddZKprogram';
55
* Basic Example
66
* See https://docs.minaprotocol.com/zkapps for more info.
77
*
8-
* The Add contract initializes the state variable 'num' to be a Field(1) value by default when deployed.
9-
* When the 'update' method is called, the Add contract adds Field(2) to its 'num' contract state.
8+
* The Add contract verifies a ZKprogram proof and updates a 'num' state variable.
9+
* When the 'settleAddProgramState' method is called, the Add contract verifies a
10+
* proof from the 'AddZKprogram' and saves the 'num' value to the contract state.
1011
*
1112
* This file is safe to delete and replace with your own contract.
1213
*/

0 commit comments

Comments
 (0)