Skip to content

Commit

Permalink
feat(zkappWorkerClient.ts): update createUpdateTransaction and proveU…
Browse files Browse the repository at this point in the history
…pdateTransaction method to use remoteApi with web worker
  • Loading branch information
ymekuria committed Sep 19, 2024
1 parent e07bcd2 commit 8453211
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@ export default class ZkappWorkerClient {
const result = await this.remoteApi.getNum();
return Field.fromJSON(JSON.parse(result as string));
}

createUpdateTransaction() {
return this._call('createUpdateTransaction', {});
return this.remoteApi.createUpdateTransaction();
}

proveUpdateTransaction() {
return this._call('proveUpdateTransaction', {});
return this.remoteApi.proveUpdateTransaction();
}

async getTransactionJSON() {
const result = await this._call('getTransactionJSON', {});
return result;
Expand Down

0 comments on commit 8453211

Please sign in to comment.