Skip to content

Commit

Permalink
feat: short description
Browse files Browse the repository at this point in the history
  • Loading branch information
rin-st committed May 1, 2024
1 parent 042abaf commit 05b67af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nextjs/hooks/scaffold-eth/useWatchBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { UseBalanceParameters, useBalance, useBlockNumber } from "wagmi";

type UseWatchBalanceParameters = UseBalanceParameters;

/**
* Wrapper around wagmi's useBalance hook. Updates data on every block change.
*/
export const useWatchBalance = (useBalanceParameters: UseWatchBalanceParameters) => {
const { targetNetwork } = useTargetNetwork();
const queryClient = useQueryClient();
Expand Down

0 comments on commit 05b67af

Please sign in to comment.