Open leirbag95 opened 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
})
Since WalletConnect V1 has shut down, we need to integrate WalletConnect V2 now into aleph.account.im.
https://docs.walletconnect.com/2.0