After installing either through pip or git, and running the simple code in the "Getting Started" page of the doc, I get : ``` Traceback (most recent call last): File "/app/main.py", line 29, in <module> main() File "/app/main.py", line 16, in main uniswap = Uniswap(address=address, private_key=private_key, version=version, provider=provider) File "/usr/local/lib/python3.9/site-packages/uniswap/uniswap.py", line 128, in __init__ raise Exception(f"Unknown netid: {self.netid}") # pragma: no cover Exception: Unknown netid: 80001 ```
Activity
ErikBjare commentedon Jan 15, 2023
Are you using a Polygon testnet RPC? (a brief search suggested so)
You need to add the appropriate network here, including contract addresses for the deployment you want to use: https://github.com/uniswap-python/uniswap-python/blob/master/uniswap/constants.py
philmoreau commentedon Jan 15, 2023
I see. Thanks for pointing me in the right direction! I'll try to figure out how this works.
Amazing reply time by the way.
koots1234 commentedon Dec 27, 2023
I'm also having this same error, using Sepolia Testnet, I've checked constants.py and its listed in _netid_to_name. Any suggestions?