Skip to content

Commit

Permalink
Merge pull request #309 from blocto/feat/adjust-web3-react-connector-…
Browse files Browse the repository at this point in the history
…activate-method

Feat: djust web3-react-connector's activate method
  • Loading branch information
q20274982 authored Oct 24, 2023
2 parents 1628d04 + 1d05082 commit 012a44c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-hairs-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blocto/web3-react-connector': patch
---

refactor: adjust web3-react-connector's activate method to comply with @blocto/sdk's changes
2 changes: 1 addition & 1 deletion adapters/web3-react-connector/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class BloctoConnector extends Connector {
!desiredChainId ||
parseChainId(desiredChainId) === parseChainId(this.provider.chainId)
) {
const accounts = await this.provider.request({ method: 'eth_accounts' });
const accounts = await this.provider.request({ method: 'eth_requestAccounts' });
return this.actions.update({
chainId: parseChainId(this.provider.chainId),
accounts,
Expand Down

0 comments on commit 012a44c

Please sign in to comment.