mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 02:07:55 +00:00
fix: remove unused imports and add missing dependency
This commit is contained in:
@@ -33,8 +33,6 @@ import {
|
||||
getSessionPeerName,
|
||||
restoreSession,
|
||||
disconnectWC,
|
||||
isWCConnected,
|
||||
createWCSigner,
|
||||
} from '@/lib/walletconnect-service';
|
||||
|
||||
// Get network config from shared endpoints
|
||||
|
||||
@@ -285,7 +285,7 @@ export const WalletProvider: React.FC<{ children: React.ReactNode }> = ({ childr
|
||||
if (import.meta.env.DEV) console.error('Transaction failed:', error);
|
||||
throw new Error(error instanceof Error ? error.message : WALLET_ERRORS.TRANSACTION_FAILED);
|
||||
}
|
||||
}, [pezkuwi.api, pezkuwi.selectedAccount]);
|
||||
}, [pezkuwi.api, pezkuwi.selectedAccount, pezkuwi.walletSource]);
|
||||
|
||||
// Sign message
|
||||
const signMessage = useCallback(async (message: string): Promise<string> => {
|
||||
|
||||
Reference in New Issue
Block a user