linting fixes for remix-ws-templates

pull/4771/head
lianahus 7 months ago
parent 4fe4b7f97e
commit 811d90ae36
  1. 1
      libs/remix-ws-templates/src/templates/hashchecker/scripts/groth16/groth16_zkproof.ts
  2. 3
      libs/remix-ws-templates/src/templates/semaphore/scripts/run_verification.ts

@ -51,7 +51,6 @@ const logger = {
console.log('check')
await snarkjs.wtns.check(r1cs, wtns, logger);
console.log('prove')
const { proof, publicSignals } = await snarkjs.groth16.prove(zkey_final, wtns);

@ -86,7 +86,6 @@ function hash(message: any): bigint {
console.log('check')
await snarkjs.wtns.check(r1cs, wtns, logger);
console.log('prove')
const { proof, publicSignals } = await snarkjs.groth16.prove(zkey_final, wtns);
@ -94,8 +93,6 @@ function hash(message: any): bigint {
console.log('zk proof validity', verified);
proof1.root.toString() === publicSignals[0] ? console.log('merkle proof valid') : console.log('merkle proof invalid')
} catch (e) {
console.error(e.message)
}

Loading…
Cancel
Save