Skip to content

Commit

Permalink
chore: rollback getAccounts change
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir committed Sep 20, 2024
1 parent 034a38e commit a611126
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/adapters/wagmi/src/connectors/AuthConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ export function authConnector(parameters: AuthParameters) {

async getAccounts() {
const provider = await this.getProvider()
let chainId = provider.getLastUsedChainId()
if (!chainId) {
chainId = await this.getChainId()
}
const { address } = await provider.connect({ chainId })
const { address } = await provider.connect()
config.emitter.emit('change', { accounts: [address as Address] })

return [address as Address]
Expand Down

0 comments on commit a611126

Please sign in to comment.