fix: remove wallet verification popup

This commit is contained in:
TerryM
2026-06-04 09:36:20 +08:00
parent a1b318016f
commit 93790cb885
5 changed files with 54 additions and 162 deletions

View File

@@ -166,17 +166,6 @@ export function getInjectedWallet(kind?: WalletKind): EthereumProvider | null {
return null;
}
export async function getConnectedInjectedAddress(
kind?: WalletKind,
): Promise<string | null> {
const ethereum = getInjectedWallet(kind);
if (!ethereum) return null;
const accounts = await ethereum
.request<unknown[]>({ method: "eth_accounts" })
.catch((): unknown[] => []);
return accounts.find(isAddress) ?? null;
}
/** Diagnostic: log what injected providers the browser exposes. */
export function logWalletProviders(): void {
const ethereum = getInjectedEthereum();