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
parent 6a3be80379
commit 571f2d6906

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