Hi! I'm having a problem using WallectConnect with wagmi. Here's my code:
`
const chains = [bsc, bscTestnet];
const { provider } = configureChains(chains, [
walletConnectProvider({
projectId
}),
]);
const wagmiClient = createClient({
autoConnect: true,
connectors: modalConnectors({ appName: "web3Modal", chains }),
provider,
});
const ethereumClient = new EthereumClient(wagmiClient, chains);
const web3modal = new Web3Modal(
{ projectId, network: 'binance' },
ethereumClient,
);
const account = getAccount()
const getAllowance = async (address) => {
const data = await readContract({
address: marketContractAddress,
abi: abi,
functionName: 'getAllowanceToBuy',
args: [address]
}).catch(err => console.log(err))
console.log(data)
return data
}`
It connects and gets account data just fine, but when I call getAllowance
I get an error sayng We don't support the chainId you provided: eip155:97
Which is kinda weird, since both WC and Wagmi are supposed to support both BSC (56) and BSC testnet (97).
If anybody knows what to do with it, please, help!