Hi Team,
I am getting error while calling fetchPairData().
Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="getReserves()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.6.4)
Tried calling this on ropsten and hardhat local network(mainnet forked). From the local hosted test net, I can see that the target address is not a contract address and hence the call is failing.
Logs from the local testnet console:
WARNING: Calling an account which is not a contract
From: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
To: 0x80e8c5d88743c4e77259d2be6442190af366d723
Could you please help me with resolving the above issue. Any help would be very much appreciated :)
Thanks!