Skip to content

Commit

Permalink
remove chainId from useContractWrite (#584)
Browse files Browse the repository at this point in the history
This also removes an issue with error messages in wagmi https://github.com/wagmi-dev/wagmi/issues/3155
  • Loading branch information
technophile-04 authored Oct 25, 2023
1 parent ab6c9c3 commit e88419a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const WriteOnlyFunctionForm = ({ abiFunction, onChange, contractAddress }
isLoading,
writeAsync,
} = useContractWrite({
chainId: getTargetNetwork().id,
address: contractAddress,
functionName: abiFunction.name,
abi: [abiFunction] as Abi,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export const useScaffoldContractWrite = <
const configuredNetwork = getTargetNetwork();

const wagmiContractWrite = useContractWrite({
chainId: configuredNetwork.id,
address: deployedContractData?.address,
abi: deployedContractData?.abi as Abi,
functionName: functionName as any,
Expand Down

0 comments on commit e88419a

Please sign in to comment.