You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
I have an issue in that I cannot get passed executing code line await pairContract.functions.getReserves(); shown in below code snippet. There is no error caught in trycatch so what am I doing wrong here? Any suggestions please?
Did you verify that the Pair address is correct? Does a pair exist for the two tokens?
What version of the SDK are you using? Pair.getAddress only accepts 2 parameters in the latest version.
Please make sure you are using the v2-sdk package and not the deprecated uniswap/sdk
I can not reproduce your issue, calling getReserves on any UniswapV2Pair contract works for me. If the address is correct and the address you are calling is a UniswapV2Pair, this is not an issue with this SDK but either with the RPC provider you are using or with Web3.js.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I have an issue in that I cannot get passed executing code line
await pairContract.functions.getReserves();
shown in below code snippet. There is no error caught in trycatch so what am I doing wrong here? Any suggestions please?Truffle v5.5.31 (core: 5.5.31)
Ganache v7.4.3
Solidity - >=0.5.0 <0.9.0 (solc-js)
Node v16.17.0
Web3.js v1.7.4
Thank you
The text was updated successfully, but these errors were encountered: