From c5ea077670165cc2397bd5d1bfdd06bfb17fd6e6 Mon Sep 17 00:00:00 2001 From: ymekuria Date: Fri, 20 Sep 2024 11:46:01 -0700 Subject: [PATCH] feat(zkappWorkerClient.ts): update initZkappInstance method parameter to accept publicKeyBase58 in UI --- .../04-zkapp-browser-ui/ui/src/pages/zkappWorkerClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 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 bae123768..62e4d11c0 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 @@ -29,9 +29,9 @@ export default class ZkappWorkerClient { async fetchAccount(publicKey58: string) { return this.remoteApi.fetchAccount(publicKey58); } - - async initZkappInstance(publicKey: PublicKey) { - return this.remoteApi.initZkappInstance(publicKey.toBase58()); + + async initZkappInstance(publicKey58: string) { + return this.remoteApi.initZkappInstance(publicKey58); } async getNum(): Promise {