Skip to content

Commit

Permalink
fix type error (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahna-ashina committed Mar 6, 2023
1 parent 71210ae commit 98fbeb6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/ContributionDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Fragment, useRef, useState } from 'react'
import { Dialog, Transition } from '@headlessui/react'
import { InformationCircleIcon } from '@heroicons/react/24/outline'
import { usePrepareContractWrite, useContractWrite, useAccount } from 'wagmi'
import { usePrepareContractWrite, useContractWrite, useAccount, Address } from 'wagmi'
import { useRouter } from 'next/router'
import Sector3DAOPriority from '../../abis/Sector3DAOPriority.json'

Expand Down Expand Up @@ -52,7 +52,7 @@ export default function ContributionDialog({ priorityTitle }: any) {
}

const { config, error } = usePrepareContractWrite({
address: address,
address: address as Address,
abi: Sector3DAOPriority.abi,
functionName: 'addContribution',
args: [contribution]
Expand All @@ -69,7 +69,9 @@ export default function ContributionDialog({ priorityTitle }: any) {
console.log('handleSubmit')
event.preventDefault()
console.log('contribution:', contribution)
write()
if (write != undefined) {
write()
}
}

// if (isSuccess) {
Expand Down

0 comments on commit 98fbeb6

Please sign in to comment.