Skip to content

Commit

Permalink
disabling auto read when component mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Feb 19, 2024
1 parent f00317b commit eef79bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vite-hardhat/hooks/useOnChainVerification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export function useOnChainVerification(proofData?: ProofData) {

const { data, error } = useContractRead({
...contractCallConfig,
functionName: 'verify',
args,
enabled: !!args,
});

const [onChainToast, setOnChainToast] = useState<Id>(0);
Expand Down
2 changes: 1 addition & 1 deletion vite-hardhat/utils/addresses.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"chainId":31337,"verifier":"0x5fc8d32690cc91d4c39d9d3abcbd16989f875707"}
{"chainId":31337,"verifier":"0x0165878a594ca255338adfa4d48449f69242eb8f"}
1 change: 1 addition & 0 deletions vite-hardhat/utils/wagmi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ export const contractCallConfig = {
address: verifier as `0x${string}`,
abi,
chainId: chainId,
functionName: 'verify',
};

0 comments on commit eef79bd

Please sign in to comment.