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: {}) => {