magic-js
magic-js copied to clipboard
Provider's `eth_requestAccounts` lasts too long
✅ Prerequisites
- [x] Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
- [x] Are you running the latest SDK version?
- [x] Are you reporting to the correct repository (
magic-sdk)?
🐛 Description
I've noticed that a simple signer call eth_requestAccounts lasts for up 1-2 seconds, which is weird. Well, if the user didn't log out or change the account, the address won't ever change. It would be nice if you somehow store it in web3 provider object and retrieve it instantly.