From 3fd14306d9c6eafcc768de18bf31059910ff8631 Mon Sep 17 00:00:00 2001 From: ymekuria Date: Fri, 20 Sep 2024 00:36:41 -0700 Subject: [PATCH] refactor(zkappWorkerClient.ts): update fetchAccount method to pass publicKey directly without converting it to base58, as it is already in the correct format --- .../04-zkapp-browser-ui/ui/src/pages/zkappWorkerClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 d6f1714bc..c97c2ab9b 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 @@ -9,7 +9,7 @@ import * as Comlink from "comlink"; export default class ZkappWorkerClient { // --------------------------------------------------------------------------------------- - + worker: Worker; // Proxy to interact with the worker's methods as if they were local remoteApi: Comlink.Remote; @@ -34,7 +34,7 @@ export default class ZkappWorkerClient { fetchAccount(publicKey: PublicKey): Promise> { console.log('publicKey', publicKey); - return this.remoteApi.fetchAccount(PublicKey.toBase58(publicKey)); + return this.remoteApi.fetchAccount(publicKey); } initZkappInstance(publicKey: PublicKey) {