Skip to content

Commit a2dbb9a

Browse files
committed
feat(voter): fix snarkjs import error
1 parent a2957fa commit a2dbb9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/voter/src/voter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import CryptoJS from 'crypto-js';
22
import { solidityPackedSha256 } from 'ethers';
3-
import snarkjs from 'snarkjs';
3+
import { groth16 } from 'snarkjs';
44

55
import { MaciAccount } from './account';
66
import {
@@ -236,7 +236,7 @@ export class VoterClient {
236236
}
237237

238238
// 1. generate proof
239-
const { proof } = await snarkjs.groth16.fullProve(
239+
const { proof } = await groth16.fullProve(
240240
addKeyInput,
241241
wasmFile,
242242
zkeyFile

0 commit comments

Comments
 (0)