docs icon indicating copy to clipboard operation
docs copied to clipboard

call revert exception when calling fetchPairData

Open chahakshah111 opened this issue 4 years ago • 2 comments

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: image 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?

chahakshah111 avatar Oct 26 '21 06:10 chahakshah111

did you fix the problem? I got this error with some token address, not all. It's weird.

luongs3 avatar Dec 22 '21 12:12 luongs3

Hey were you able to find a solution to this problem?

Suvanch avatar May 02 '23 03:05 Suvanch