WalletConnect / walletconnect-monorepo

WalletConnect Monorepo
Apache License 2.0
1.26k stars 626 forks source link

Trust Wallet - An unknown error occured #4410

Closed christopheSeeka closed 2 months ago

christopheSeeka commented 2 months ago

Wallet connect working well with metamask but with Trust mobile wallet i get a "an unknown error occured" after the walletconnect popup and user touch "select wallet"

If i try to scan from my desktop qrcode, with Trust Wallet qrcode scanner, i get the same error and in the browser: "Requested chains are not supported"

App is using "@walletconnect/ethereum-provider": "^2.11.3"

Any idea what could be the issue? As it work on Metamask and it's BNB Chain that is definitely supported by Trust. Same Error happen with OKX mobile wallet.

Example of my code:

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

const provider = await EthereumProvider.init({
      projectId: 'xxxxxxxxxxxxxxxxxxxxx',
      chains: [chain_conf.EVM_NODE_CHAIN_ID],
      showQrModal: true, 
      optionalMethods: ['eth_signTypedData', 'eth_signTypedData_v4', 'eth_sign', 'eth_requestAccounts'],
    })
const accounts: any = await provider.request({ method: 'eth_requestAccounts' })
console.log("accounts", accounts)
linear[bot] commented 2 months ago

CS-56 Trust Wallet - An unknown error occured