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 17d88a9f9..5f84d10ce 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 @@ -63,9 +63,11 @@ export default function Home() { setDisplayText('Checking if fee payer account exists...'); console.log('Checking if fee payer account exists...'); - const res = await zkappWorkerClient.fetchAccount({ - publicKey: publicKey!, - }); + console.log(`Public key to load: ${publicKeyBase58}`); + + const res = await zkappWorkerClient.fetchAccount( + publicKeyBase58, + ); const accountExists = res.error == null; await zkappWorkerClient.loadContract(); @@ -265,4 +267,4 @@ export default function Home() { ); -} \ No newline at end of file +}