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

@@ -45,13 +45,6 @@ function waitForInjected(kind: WalletKind): Promise<boolean> {
});
}
/**
* When the page is opened via a `?autoLogin=<wallet>` deeplink (typically from
* inside TokenPocket / imToken in-app browsers), wait for the wallet to inject
* `window.ethereum`, then complete wallet login without WalletConnect. imToken
* may drop the query string while opening its in-app browser, so imToken browser
* detection also starts the same direct-login path.
*/
export function AutoInjectedLogin() {
const { completeLogin, status } = useWallet();
@@ -81,7 +74,6 @@ export function AutoInjectedLogin() {
if (cancelled) return;
completeLogin(res.token, res.wallet);
} catch (err) {
// eslint-disable-next-line no-console
console.warn("[wallet-autologin] failed", err);
}
});