0xApeToshi / ERC721-snapshot

Make a snapshot of the current ERC721 token holders distribution
MIT License
8 stars 5 forks source link

Invalid Syntax #1

Closed DoodledPunks-Ken closed 2 years ago

DoodledPunks-Ken commented 2 years ago

I keep getting this error:

bash-3.2$ python main.py File "main.py", line 59 url = f"https://api.etherscan.io/api?module=contract&action=getabi&address={CONTRACT_ADDR}" ^ SyntaxError: invalid syntax

0xApeToshi commented 2 years ago

Hmh, what OS and Python version are you using? My best guess is that you forgot to put quotes around the CONTRACT_ADDR- otherwise it's not a string but a hex number.

0xApeToshi commented 2 years ago

I figured out what the problem was. On Mac OS and Linux, you need to use pip3 and python3, otherwise it uses python2.