Closed khanti42 closed 1 week ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Closes #286
This PR includes updates to the MetaMask detection logic and the removal of legacy MetaMask Flask support:
Updates to
useHasMetamask.ts
:EIP6963ProviderDetail
andeip6963RequestProvider
from@metamask/providers
.useEffect
hook to use the new detection method (eip6963RequestProvider
) for checking if MetaMask is installed.detectMetamask
to return aPromise<EIP6963ProviderDetail | null>
using the new detection method.detectMetamaskLegacy
) to ensure compatibility.detectMetamask
function withdetectMetamaskLegacy
to handle the legacy detection process.getProvider
function by removing commented lines and refining provider detection logic.Removal of
useHasMetamaskFlask.ts
:useHasMetamaskFlask.ts
, which contained logic for detecting MetaMask Flask. This removal indicates that Flask-specific logic is no longer necessary due to updates in MetaMask's support for Snaps.