From 4f14c50c19d0bbf4c80c0d51522736739ea2b34b Mon Sep 17 00:00:00 2001 From: ymekuria Date: Thu, 19 Sep 2024 13:07:10 -0700 Subject: [PATCH] feat(zkappWorkerClient.ts): update getTransactionJSON method to use remoteApi with web worker --- .../04-zkapp-browser-ui/ui/src/pages/zkappWorkerClient.ts | 7 ++++--- 1 file changed, 4 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 d35b96a5c..cf869a717 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 @@ -54,11 +54,12 @@ export default class ZkappWorkerClient { proveUpdateTransaction() { return this.remoteApi.proveUpdateTransaction(); } - async getTransactionJSON() { - const result = await this._call('getTransactionJSON', {}); - return result; + + getTransactionJSON() { + return this.remoteApi.getTransactionJSON(); } + // --------------------------------------------------------------------------------------- worker: Worker;