From 1e063c95f37e8fa5827b2673a1ad6ed8687a82f5 Mon Sep 17 00:00:00 2001 From: yushihang Date: Wed, 25 Sep 2024 19:38:58 +0800 Subject: [PATCH] remove await before _doCalculateWitness() --- code_producers/src/wasm_elements/common/witness_calculator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_producers/src/wasm_elements/common/witness_calculator.js b/code_producers/src/wasm_elements/common/witness_calculator.js index af8dc0d7..ecc354ac 100755 --- a/code_producers/src/wasm_elements/common/witness_calculator.js +++ b/code_producers/src/wasm_elements/common/witness_calculator.js @@ -209,7 +209,7 @@ class WitnessCalculator { const buff32 = new Uint32Array(this.witnessSize*this.n32+this.n32+11); const buff = new Uint8Array( buff32.buffer); - await this._doCalculateWitness(input, sanityCheck); + this._doCalculateWitness(input, sanityCheck); //"wtns" buff[0] = "w".charCodeAt(0)