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