Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
switch chain before retrieving account
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzwfu committed Aug 11, 2023
1 parent 76784f6 commit fc3d5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/connectors/src/venly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export class VenlyConnector extends Connector<VenlyProvider, Options> {

this.emit('message', { type: 'connecting' })

const account = await this.getAccount()
// Switch to chain if provided
let id = await this.getChainId()
let unsupported = this.isChainUnsupported(id)
Expand All @@ -68,6 +67,7 @@ export class VenlyConnector extends Connector<VenlyProvider, Options> {
id = chain.id
unsupported = this.isChainUnsupported(id)
}
const account = await this.getAccount()

return {
account,
Expand Down

0 comments on commit fc3d5c0

Please sign in to comment.