L3: isUnlocked() returns false when no active connection

Previously always returned true. Now returns true only when the site
has been approved via eth_requestAccounts (selectedAddress is set).
This commit is contained in:
2026-02-27 11:38:40 -08:00
parent a1e42b461c
commit da58c81285

View File

@@ -134,7 +134,7 @@
// Some dApps (wagmi) check this to confirm MetaMask-like behavior
_metamask: {
isUnlocked() {
return Promise.resolve(true);
return Promise.resolve(provider.selectedAddress !== null);
},
},
};