Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web3-react): replace eth_accounts with eth_requestAccounts #377

Merged
merged 3 commits into from
Jan 17, 2024

Conversation

q20274982
Copy link
Member

@q20274982 q20274982 commented Jan 15, 2024

Summary

  • replace eth_accounts with eth_requestAccounts to avoid returning empty accounts in switch chain before connecting
  • remove the unnecessary onAccountChanged handling because blocto's account switch requires re-connecting, and this will trigger the connect event at that time.

Related Links

Asana:

Checklist

  • Pasted Asana link.
  • Tagged labels.

Prerequisite/Related Pull Requests

@q20274982 q20274982 requested a review from sanyu1225 January 15, 2024 04:16
Copy link

changeset-bot bot commented Jan 15, 2024

🦋 Changeset detected

Latest commit: ec0bf5c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@blocto/web3-react-connector Patch
@blocto/sdk Patch
@blocto/dappauth Patch
@blocto/aptos-wallet-adapter-plugin Patch
@blocto/connectkit-connector Patch
@blocto/rainbowkit-connector Patch
@blocto/wagmi-connector Patch
@blocto/web3modal-connector Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@q20274982 q20274982 requested a review from mordochi January 15, 2024 07:59
mordochi
mordochi previously approved these changes Jan 17, 2024
@q20274982 q20274982 force-pushed the fix/web3-react-switchchain branch from 44e3566 to ec0bf5c Compare January 17, 2024 09:58
@q20274982 q20274982 merged commit 6d26e4b into develop Jan 17, 2024
3 checks passed
@q20274982 q20274982 deleted the fix/web3-react-switchchain branch January 17, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants