Skip to content

Commit 1b8ea14

Browse files
committed
feat(customNextPage.js): update proof state after calling zkProgram.update to reflect changes on the UI
1 parent 3ba8373 commit 1b8ea14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/ui/next/customNextPage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export default function Home() {
9696
const updateZKprogram = async () => {
9797
if (contractState && proof) {
9898
const update = await zkProgram.update(contractState, proof);
99+
setProof(update.proof);
99100
}
100101
};
101102

0 commit comments

Comments
 (0)