Skip to content

Commit

Permalink
remove await before _doCalculateWitness()
Browse files Browse the repository at this point in the history
  • Loading branch information
yushihang authored Sep 25, 2024
1 parent c133004 commit 20c18d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code_producers/src/wasm_elements/common/witness_calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class WitnessCalculator {

const w = [];

await this._doCalculateWitness(input, sanityCheck);
this._doCalculateWitness(input, sanityCheck);

for (let i=0; i<this.witnessSize; i++) {
this.instance.exports.getWitness(i);
Expand All @@ -191,7 +191,7 @@ class WitnessCalculator {

const buff32 = new Uint32Array(this.witnessSize*this.n32);
const buff = new Uint8Array( buff32.buffer);
await this._doCalculateWitness(input, sanityCheck);
this._doCalculateWitness(input, sanityCheck);

for (let i=0; i<this.witnessSize; i++) {
this.instance.exports.getWitness(i);
Expand Down

0 comments on commit 20c18d9

Please sign in to comment.