Skip to content

Commit

Permalink
feat(zkappWorker.ts): export api object
Browse files Browse the repository at this point in the history
  • Loading branch information
ymekuria committed Sep 20, 2024
1 parent 3fd1430 commit 8e2d824
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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: {}) => {
Expand Down

0 comments on commit 8e2d824

Please sign in to comment.