Skip to content

Commit

Permalink
chore: add 'useRefetchBalance' import from '@rainbow-me/rainbowkit'
Browse files Browse the repository at this point in the history
  • Loading branch information
magiziz committed Jan 19, 2024
1 parent 13d7a17 commit 02f01f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .changeset/nasty-months-provide.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ Example usage:
useSendTransaction,
useWaitForTransaction,
} from "wagmi";
import { useRefetchBalance } from "./hooks/useRefetchBalance";
import { ConnectButton } from '@rainbow-me/rainbowkit';
import { useRefetchBalance, ConnectButton } from '@rainbow-me/rainbowkit';
const YourApp = () => {
const refetchBalance = useRefetchBalance();
Expand Down
4 changes: 2 additions & 2 deletions packages/example/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const Example = ({ authEnabled }: AppContextProps) => {

const { config: sendTransactionConfig } = usePrepareSendTransaction({
enabled: !!address,
to: "0x5043b123328B5274221822e8561aE6C496837478",
value: BigInt(1000000000000000000),
to: address,
value: 0n,
});

const {
Expand Down

0 comments on commit 02f01f2

Please sign in to comment.