Ethers.js: Support for 'eth_accounts' returning multiple accounts?

Created on 10 Dec 2019  路  3Comments  路  Source: ethers-io/ethers.js

Let's say the MetaMask provider started to return multiple accounts for eth_accounts. That is to say, where the length of the returned array is currently either 0 or 1, it could also be >1. Would this have any implications for using MetaMask with ethers?

discussion

All 3 comments

It should work just fine, MetaMask just uses the normal Web3Provider wrapper, which is a simple sub-class around JsonRpcProvider, which fully supports lists of accounts.

Closing this now, but if I misunderstood the question or you have further questions, please feel free to re-open. :)

Oh, I should've closed. I'm perfectly happy, thanks @ricmoo !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adamdossa picture adamdossa  路  3Comments

thegostep picture thegostep  路  3Comments

crazyrabbitLTC picture crazyrabbitLTC  路  3Comments

jochenonline picture jochenonline  路  3Comments

pcowgill picture pcowgill  路  3Comments