fix(L3): isUnlocked() returns false when no accounts exposed

_metamask.isUnlocked() now checks provider.selectedAddress instead of
always returning true.
This commit is contained in:
2026-02-27 11:42:11 -08:00
committed by user
parent 0413c52229
commit 98f68adb11

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);
},
},
};