diff --git a/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx b/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx index a6c617018..64a4a9da6 100644 --- a/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx +++ b/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx @@ -35,6 +35,9 @@ export default function Home() { }); } + const zkappWorkerClient = new ZkappWorkerClient(); + setState(prev => ({ ...prev, zkappWorkerClient })); + (async () => { if (!state.hasBeenSetup) { setDisplayText('Loading web worker...');