diff --git a/hooks/useCurrentVotingWeight.tsx b/hooks/useCurrentVotingWeight.tsx index 52d4e01..a48e3c2 100644 --- a/hooks/useCurrentVotingWeight.tsx +++ b/hooks/useCurrentVotingWeight.tsx @@ -33,6 +33,7 @@ export const useCurrentVotingWeight = ({ voterAddress, target }: Props) => { abi: parseAbi(['function getVotes(address account) external view returns (uint256)']), functionName: 'getVotes', args: [address], + watch: true, chainId, }); return { data, error, isLoading }; diff --git a/hooks/useEasyWrite.ts b/hooks/useEasyWrite.ts index 5bff3d6..61c971a 100644 --- a/hooks/useEasyWrite.ts +++ b/hooks/useEasyWrite.ts @@ -12,10 +12,7 @@ export const useEasyWrite = ( params: UsePrepareContractWriteConfig & { isCrossChain?: boolean } ) => { const { notify } = useNotifications(); - const { - config, - error: prepareError, - } = usePrepareContractWrite(params); + const { config, error: prepareError } = usePrepareContractWrite(params); const { data: writeData, error: writeError,