Skip to content

Commit

Permalink
feature(index.page.tsx): update fetch account method calls with publi…
Browse files Browse the repository at this point in the history
…cKeyBase58 parameters
  • Loading branch information
ymekuria committed Sep 20, 2024
1 parent 5b62a7b commit 839d2a4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -265,4 +267,4 @@ export default function Home() {
</div>
</GradientBG>
);
}
}

0 comments on commit 839d2a4

Please sign in to comment.