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

Update universalWalletConnector to include switchChain method #24

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

robyn3choi
Copy link

@robyn3choi robyn3choi commented Apr 1, 2024

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • Adds the ability to switch chains when using the universal wallet connector
  • Exposes the instance of the magic SDK as a property on the connector (it lets you call 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)

**What is the new behavior (if this is a feature change)?

  • Calling switchChain when connected with the universal wallet connector switches chains
  • Can use the connector to access the most recent instance of magic SDK (so it's always on the correct chain)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant