chore: remove wallet code comments

This commit is contained in:
TerryM
2026-06-04 09:55:19 +08:00
parent f8369b6361
commit 355c920c80
7 changed files with 2 additions and 46 deletions

View File

@@ -95,17 +95,6 @@ function connectorMatchesWallet(
return false;
}
/**
* MetaMask / imToken QR fallback via RainbowKit + WalletConnect.
*
* Flow: connect through RainbowKit/Wagmi on BNB Chain -> once an account is
* connected, complete a local frontend wallet session. WalletConnect fallback
* does not require message signature, backend nonce, or verify call.
*
* Entirely gated behind a real `VITE_WALLETCONNECT_PROJECT_ID`: when it is
* missing `available` is false and `start` is a no-op, so callers can hide or
* disable the entry instead of triggering a connect with a fake project id.
*/
export function useWalletConnectLogin() {
const available = hasWalletConnectProjectId();
const { address: localAddress, completeLogin } = useWallet();
@@ -215,10 +204,6 @@ export function useWalletConnectLogin() {
}
}
// QR mode must always use a WalletConnect-compatible connector so the
// desktop page can render a scannable `wc:` URI instead of opening a
// local browser extension. Deeplink mode can prefer wallet-specific
// connectors (notably MetaMask SDK on mobile).
const walletConnectConnector =
connectors.find((item) => item.type === "walletConnect") ??
connectors.find((item) => item.id === "walletConnect");