Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Unable to fetch pair data using uniswap V2. Error in getReserves()Β #100

@Rajwanshi

Description

@Rajwanshi

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions