Skip to content

Commit e8e05c1

Browse files
committed
refactor(interact.ts): intialize zkprogram with zkapp initial state
1 parent fb49e7e commit e8e05c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/project-ts/src/interact.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ console.log('compile the contract...');
7777
await Add.compile();
7878

7979
try {
80-
const initialState = Field(1);
80+
const initialState = zkApp.num.get();
8181

8282
// initialze the ZKprogram
8383
const init = await AddZkProgram.init(initialState);

0 commit comments

Comments
 (0)