From 8c7115c18f63a6a59ac1aea33992aba3418385b7 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 31 Oct 2023 12:59:09 +0100 Subject: [PATCH] Fix linting --- .../src/templates/semaphore/scripts/run_setup.ts | 2 +- .../src/templates/semaphore/scripts/run_verification.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/remix-ws-templates/src/templates/semaphore/scripts/run_setup.ts b/libs/remix-ws-templates/src/templates/semaphore/scripts/run_setup.ts index 8053a73cb5..1d8505b71d 100644 --- a/libs/remix-ws-templates/src/templates/semaphore/scripts/run_setup.ts +++ b/libs/remix-ws-templates/src/templates/semaphore/scripts/run_setup.ts @@ -1,6 +1,6 @@ import { ethers, BigNumber } from 'ethers' -// @ts-ignore +// eslint-disable-next-line @typescript-eslint/no-var-requires const snarkjs = require('snarkjs'); const logger = { diff --git a/libs/remix-ws-templates/src/templates/semaphore/scripts/run_verification.ts b/libs/remix-ws-templates/src/templates/semaphore/scripts/run_verification.ts index 6008aceef9..e97e4074e9 100644 --- a/libs/remix-ws-templates/src/templates/semaphore/scripts/run_verification.ts +++ b/libs/remix-ws-templates/src/templates/semaphore/scripts/run_verification.ts @@ -1,7 +1,8 @@ import { ethers, BigNumber } from 'ethers' import { IncrementalMerkleTree } from "@zk-kit/incremental-merkle-tree" import { poseidon } from "circomlibjs" // v0.0.8 -// @ts-ignore + +// eslint-disable-next-line @typescript-eslint/no-var-requires const snarkjs = require('snarkjs'); const logger = { @@ -27,7 +28,7 @@ function hash(message: any): bigint { const r1csBuffer = await remix.call('fileManager', 'readFile', 'circuits/.bin/semaphore.r1cs', true); // @ts-ignore const r1cs = new Uint8Array(r1csBuffer); - // @ts-ignore + // @ts-ignore const wasmBuffer = await remix.call('fileManager', 'readFile', 'circuits/.bin/semaphore.wasm', true); // @ts-ignore const wasm = new Uint8Array(wasmBuffer);