-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update universalWalletConnector to include switchChain method #24
Conversation
- Add localforage as dependency (required by @magic-sdk/provider) - Add changeset script for better version management
- Uncomment dist/**/* in .gitignore to match upstream - Will build dist/ during npm publish instead of committing it
Merge v2.1.1 from upstream - Sync with upstream v2.1.1 - Update Magic SDK dependencies - Preserve switchChain functionality - Add prepublishOnly script - Restore upstream .gitignore pattern
…sly, tho it seems it was not checked in), to disambiguate that this connector is for Magic wallet.
...that we used previously. This disambiguates that this is a wagmi connector for the Magic wallet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ robyn3choi. Thanks for the PR!
Could you please revert the changes to the changelog.md (these will be handled by our publishing flow) as well as the changes to the package.json through line 26 (up through prepublishOnly
)? I can then approve.
Hi @joshuascan, thanks so much for this! I believe we've made the changes you've requested. Please let us know if you need anything else! |
Thanks @ninemachines! I'll merge this now and will circle back shortly with the version number once it's been published. |
@robyn3choi / @ninemachines your changes have been released in version Thanks again for your contribution! |
Thanks so much, @joshuascan!! |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
connector.magic.wallet.showUI()
from a React component and have it open the wallet on the newly switched chain)What is the current behavior? (You can also link to an open issue here)
switchChain
when connected with the universal wallet connector does nothing - Can't switch chain with universalWalletConnector #22.**What is the new behavior (if this is a feature change)?
switchChain
when connected with the universal wallet connector switches chains