Skip to content

Commit

Permalink
making TypeScript happy 🕳️
Browse files Browse the repository at this point in the history
  • Loading branch information
dysbulic committed Aug 18, 2024
1 parent 44aa9cc commit 7772639
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web/components/QuestChain/UploadProof.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { useInputText } from '#lib/hooks/useInputText';
import { errorHandler } from '#utils/errorHandler';
import { getHexChainId, NETWORK_INFO } from '#utils/networks';
import { a } from '@react-spring/web';
import { SimulateContractReturnType } from 'viem';

export type ToastInfo = {
close: boolean;
Expand Down Expand Up @@ -148,7 +149,9 @@ export const UploadProof: React.FC<{
// eslint-disable-next-line no-console
if(debug) console.debug({ request })

const txHash = await viemClients.wallet.writeContract(request);
const txHash = await viemClients.wallet.writeContract(
request as typeof request & { account: string }
);

addToast({
description: `Transaction ${txHash} submitted. Waiting for 1 block confirmation.`,
Expand Down

0 comments on commit 7772639

Please sign in to comment.