magic-js icon indicating copy to clipboard operation
magic-js copied to clipboard

Provider's `eth_requestAccounts` lasts too long

Open mightymatth opened this issue 3 years ago • 0 comments

✅ 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.

mightymatth avatar Feb 28 '22 11:02 mightymatth