From 4d175c73d654085c0bc99db8ac525f7b2f5fedf8 Mon Sep 17 00:00:00 2001 From: ymekuria Date: Thu, 19 Sep 2024 19:55:59 -0700 Subject: [PATCH] refactor(zkappWorkerClient.ts): update fetchAccount method to correctly convert publicKey to base58 before fetching account data --- .../04-zkapp-browser-ui/ui/src/pages/zkappWorkerClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorkerClient.ts b/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorkerClient.ts index ba347e8f2..d6f1714bc 100644 --- a/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorkerClient.ts +++ b/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorkerClient.ts @@ -33,7 +33,8 @@ export default class ZkappWorkerClient { } fetchAccount(publicKey: PublicKey): Promise> { - return this.remoteApi.fetchAccount(publicKey.toBase58()); + console.log('publicKey', publicKey); + return this.remoteApi.fetchAccount(PublicKey.toBase58(publicKey)); } initZkappInstance(publicKey: PublicKey) {