aleph-im / aleph-account

Aleph.im's Account management dApp
https://account.aleph.im/
2 stars 3 forks source link

WalletConnect V2 #114

Open leirbag95 opened 1 year ago

leirbag95 commented 1 year ago

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

https://docs.walletconnect.com/2.0

leirbag95 commented 1 year ago

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
})