Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Jul 15, 2024
1 parent 9829fc2 commit 87f1f79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/app/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import { useMount, useUpdateEffect } from "react-use";
import styled from "styled-components";
import _ from "lodash";
import { useAccount, useContractWrite, usePrepareContractWrite } from "wagmi";
import { rawEmailToBuffer } from "@zk-email/helpers/dist/input-helpers";
import {
downloadProofFiles,
generateProof,
verifyProof,
} from "@zk-email/helpers/dist/zkp";
} from "@zk-email/helpers/dist/chunked-zkey";
import { abi } from "../abi.json";
import {
generateTwitterVerifierCircuitInputs,
Expand Down Expand Up @@ -431,15 +430,13 @@ export const MainPage: React.FC<{}> = (props) => {
status !== "proof-files-downloaded-successfully"
}
onClick={async () => {
const emailBuffer = rawEmailToBuffer(emailFull); // Cleaned email as buffer

let input: ITwitterCircuitInputs;
try {
setDisplayMessage("Generating proof...");
setStatus("generating-input");

input = await generateTwitterVerifierCircuitInputs(
emailBuffer,
Buffer.from(emailFull),
ethereumAddress
);

Expand Down
2 changes: 1 addition & 1 deletion packages/circuits/tests/twitter.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { buildPoseidon } from "circomlibjs";
import { verifyDKIMSignature } from "@zk-email/helpers/dist/dkim";
import { generateTwitterVerifierCircuitInputs } from "../helpers";
import { bigIntToChunkedBytes, bytesToBigInt, packedNBytesToString } from "@zk-email/helpers/dist/binaryFormat";
import { bigIntToChunkedBytes, bytesToBigInt, packedNBytesToString } from "@zk-email/helpers/dist/binary-format";

const path = require("path");
const fs = require("fs");
Expand Down

0 comments on commit 87f1f79

Please sign in to comment.