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

WalletConnect V2 #114

Open
leirbag95 opened this issue Jul 3, 2023 · 1 comment
Open

WalletConnect V2 #114

leirbag95 opened this issue Jul 3, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@leirbag95
Copy link
Contributor

Since WalletConnect V1 has shut down, we need to integrate WalletConnect V2 now into aleph.account.im.

https://docs.walletconnect.com/2.0

@leirbag95 leirbag95 added the bug Something isn't working label Jul 3, 2023
@leirbag95 leirbag95 self-assigned this Jul 3, 2023
@leirbag95
Copy link
Contributor Author

There are lot of webpack errors and I have to manage them

In order to migrate v1.x to v2.x, Wallet Connect stopped supporting @walletconnect/web3-provider provider in favor of the improved version published under @walletconnect/ethereum-provider

So here is the new code:

import { EthereumProvider } from '@walletconnect/ethereum-provider'

const provider = await EthereumProvider.init({
  projectId: 'WALLETCONNECT_PROJECT_ID', // required
  chains: [1], // required
  showQrModal: true // requires @walletconnect/modal
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant