docs
docs copied to clipboard
call revert exception when calling fetchPairData
I'm using this code as reference https://docs.uniswap.org/sdk/2.0.0/guides/trading. But when I call fetchPairData function I'm getting this error:
I tried using custom provider and passed it to fetchPairData function but still got the same error, here is the provider:
const provider = new ethers.providers.JsonRpcProvider(
https://rinkeby.infura.io/v3/${process.env.INFURA_KEY},
4
);
How can I fix this error?
did you fix the problem? I got this error with some token address, not all. It's weird.
Hey were you able to find a solution to this problem?