From 8e2d82476d1065f89bae58c05739565beb5cf32d Mon Sep 17 00:00:00 2001 From: ymekuria Date: Fri, 20 Sep 2024 00:50:24 -0700 Subject: [PATCH] feat(zkappWorker.ts): export api object --- .../zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorker.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorker.ts b/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorker.ts index 3f1472c1a..e47639c73 100644 --- a/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorker.ts +++ b/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/zkappWorker.ts @@ -16,7 +16,7 @@ const state = { // --------------------------------------------------------------------------------------- // Define the worker's methods -const api = { +export const api = { setActiveInstanceToDevnet: async (args: {}) => { const Network = Mina.Network( 'https://api.minascan.io/node/devnet/v1/graphql' @@ -39,6 +39,9 @@ const api = { initZkappInstance: async (publicKey: PublicKey) => { console.log(publicKey) // const publicKey = PublicKey.fromBase58(args.publicKey58); + // const pk = PublicKey.toBase58(publicKey) + // console.log('pk', pk) + console.log(state.Add) state.zkapp = new state.Add!(publicKey); }, getNum: async (args: {}) => {