Skip to content

Commit

Permalink
refactor(zkappWorkerClient.ts): update fetchAccount method to correct…
Browse files Browse the repository at this point in the history
…ly convert publicKey to base58 before fetching account data
  • Loading branch information
ymekuria committed Sep 20, 2024
1 parent 9edd889 commit 4d175c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export default class ZkappWorkerClient {
}

fetchAccount(publicKey: PublicKey): Promise<ReturnType<typeof fetchAccount>> {
return this.remoteApi.fetchAccount(publicKey.toBase58());
console.log('publicKey', publicKey);
return this.remoteApi.fetchAccount(PublicKey.toBase58(publicKey));
}

initZkappInstance(publicKey: PublicKey) {
Expand Down

0 comments on commit 4d175c7

Please sign in to comment.