Skip to content

Commit

Permalink
Update delegate and amount
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkeating committed Nov 13, 2023
1 parent 4020a6b commit f304105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions hooks/useCurrentVotingWeight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
5 changes: 1 addition & 4 deletions hooks/useEasyWrite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f304105

Please sign in to comment.