From 839d2a471f6be870b41432ac9caefb5e808ac8f5 Mon Sep 17 00:00:00 2001 From: ymekuria Date: Fri, 20 Sep 2024 11:57:09 -0700 Subject: [PATCH] feature(index.page.tsx): update fetch account method calls with publicKeyBase58 parameters --- .../04-zkapp-browser-ui/ui/src/pages/index.page.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 +}