USDC Balance: {formattedBalance} USDC
+ ); +}; export default function Transfer() { const { sendUsdcAsync } = useSendUsdc(); - const { isConnected, chain } = useAccount(); + const { isConnected, chain, address } = useAccount(); const [isLoading, setIsLoading] = useState(false); const { toast } = useToast(); + const [sendToAddress, setSendToAddress] = useStatePlease connect your account to proceed.
+ )} > ); -} +} \ No newline at end of file diff --git a/advanced/dapps/chain-abstraction-demo/components/ui/input.tsx b/advanced/dapps/chain-abstraction-demo/components/ui/input.tsx new file mode 100644 index 000000000..5af26b2c1 --- /dev/null +++ b/advanced/dapps/chain-abstraction-demo/components/ui/input.tsx @@ -0,0 +1,25 @@ +import * as React from "react" + +import { cn } from "@/lib/utils" + +export interface InputProps + extends React.InputHTMLAttributes