From 89eb030cc9e6f131bf4506f288e817410ae372c5 Mon Sep 17 00:00:00 2001 From: 0age <37939117+0age@users.noreply.github.com> Date: Sat, 7 Dec 2024 07:43:58 -0800 Subject: [PATCH] fix: update network switching to use direct wallet requests - Replace wagmi switchNetwork with direct wallet_switchEthereumChain calls - Add proper error handling for network switching failures - Update notification messages for better UX - Remove unused imports --- frontend/src/components/Transfer.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/components/Transfer.tsx b/frontend/src/components/Transfer.tsx index e42f8b8..3a27d99 100644 --- a/frontend/src/components/Transfer.tsx +++ b/frontend/src/components/Transfer.tsx @@ -1,7 +1,6 @@ import { useState } from 'react'; import { useAccount, useChainId } from 'wagmi'; import { useNotification } from '../hooks/useNotification'; -import { config } from '../config/wagmi'; interface TransferProps { chainId: string;