Skip to content

Commit

Permalink
fixing conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Nov 12, 2024
1 parent 2983a8e commit 8060297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function useOffChainVerification(
useEffect(() => {
if (!proofData || !noir) return;

toast.promise(backend.verifyProof(proofData.proof), {
toast.promise(backend.verifyProof(proofData), {
pending: 'Verifying proof off-chain',
success: 'Proof verified off-chain',
error: 'Error verifying proof off-chain',
Expand Down
3 changes: 2 additions & 1 deletion vite-hardhat/packages/vite/hooks/useProofGeneration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { useEffect, useState } from 'react';
import { getCircuit } from '../../noir/compile.js';
import { UltraPlonkBackend } from '@aztec/bb.js';
import { Noir } from '@noir-lang/noir_js';
import { ProofData } from '@noir-lang/types';

export function useProofGeneration(inputs?: { [key: string]: string }) {
const [proofData, setProofData] = useState<Uint8Array | undefined>();
const [proofData, setProofData] = useState<ProofData | undefined>();
const [backend, setBackend] = useState<UltraPlonkBackend>();
const [noir, setNoir] = useState<Noir | undefined>();

Expand Down

0 comments on commit 8060297

Please sign in to comment.