Skip to content

Commit

Permalink
feat(index.page.tsx): add worker client setup method
Browse files Browse the repository at this point in the history
  • Loading branch information
ymekuria committed Sep 19, 2024
1 parent e883abe commit 3375daf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ export default function Home() {
// }

const zkappWorkerClient = new ZkappWorkerClient();

setState(prev => ({ ...prev, zkappWorkerClient }));

const setup = async () => {

setState(prev => ({ ...prev, displayText: 'Loading web worker...' }));
await zkappWorkerClient.setActiveInstanceToDevnet();

};

// (async () => {
// if (!state.hasBeenSetup) {
// setDisplayText('Loading web worker...');
Expand Down

0 comments on commit 3375daf

Please sign in to comment.