Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Deprecated Pair.fetchData() function in Javascript Documentation #257

Open
zhhuffman opened this issue Jul 14, 2020 · 0 comments
Open

Deprecated Pair.fetchData() function in Javascript Documentation #257

zhhuffman opened this issue Jul 14, 2020 · 0 comments

Comments

@zhhuffman
Copy link

This page of the Javascript SDK documentation Includes the following deprecated line in sample code:

const pair = await Pair.fetchData(DAI, WETH[DAI.chainId])

Fetcher.fetchPairData() is the proper function. The code should read as follows:

 const pair = await Fetcher.fetchPairData(DAI, WETH[DAI.chainId])
@moodysalem moodysalem transferred this issue from Uniswap/v2-sdk Mar 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant