Skip to content

Commit eed0324

Browse files
committed
refactor(Add.ts): remove unused zkProgramNum state variable
1 parent 2a374cf commit eed0324

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

templates/project-ts/src/Add.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ import { AddProgramProof } from './AddZKprogram';
1212
*/
1313
export class Add extends SmartContract {
1414
@state(Field) num = State<Field>();
15-
@state(Field) zkProgramNum = State<Field>();
1615

1716
@method async settleAddProgramState(proof: AddProgramProof) {
1817
proof.verify();
1918
const addProgramState = proof.publicOutput;
20-
this.zkProgramNum.set(addProgramState);
19+
this.num.set(addProgramState);
2120
}
2221
}

0 commit comments

Comments
 (0)