Closed pablofullana closed 5 years ago
I think we can distinguish between MetaMask not being installed (there's now window.web3
or window.ethereum
) and MetaMask not being unlocked (the time between calling provider.enable
and the promise it returns being resolved).
We already have a Web3State
enum, I think we can expand them to better represent all possible scenarios. Once we have that and the proper value is in the store, then implementing this is just a matter of checking that value.
Sounds perfect.
As a user, when not having Metamask installed, I'd like to get a message stating so.
Is this possible or shall this be taken care with the 'Unlock Metamask' issue (#116)? Open for discussion.