No support for chainId 97? #1788
Unanswered
Enikol
asked this question in
Developer Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 sayngWe 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!
Beta Was this translation helpful? Give feedback.
All reactions