const enableWalletLinkWeb3 = () => {
const walletLink = new WalletLink({
appName: 'app',
appLogoUrl: 'app-url',
darkMode: false,
})
const walletLinkProvider = walletLink.makeWeb3Provider(
'https://api.avax.network/ext/bc/C/rpc',
43114,
)
const activate = async () => {
await walletLinkProvider.enable()
return {
provider: walletLinkProvider as unknown as providers.ExternalProvider,
}
}
enableWeb3({
connector: {
type: 'walletlink',
network: '0xa86a',
account: null,
chainId: null,
activate,
deactivate: async () => {
walletLinkProvider.disconnect()
},
},
})
}
It is no respond after enableWalletLinkWeb3.