JoinColony / purser

Interact with Ethereum wallets easily
https://joincolony.github.io/purser
MIT License
84 stars 21 forks source link

Better Metamask Locked State Detection #351

Closed rdig closed 2 years ago

rdig commented 2 years ago

This PR improves Metamask's locked state detection by manually checking for the experimental isUnlocked value, as well as trying to access the accounts, in a sort of double blind test.

This change was made to overcome the isUnlocked to refresh it's returned value instantly. It needs a page refresh until it shows the new (unlocked) state.