Closed DoodledPunks-Ken closed 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.
I figured out what the problem was. On Mac OS and Linux, you need to use pip3
and python3
, otherwise it uses python2
.
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