Skip to content

Verification of contract #22

@nikkiwong

Description

@nikkiwong

Hi there,

I'm at the point of the course where you get the API key token from etherscan.io.

I followed all the steps, but my code breaks here:

fund_me = FundMe.deploy({"from": account}, publish_source=False)

and this is the error I get:

File "eth_brownie-1.19.3-py3.9.egg/brownie/network/contract.py", line 411, in publish_source
    data = response.json()
  File "requests/models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
JSONDecodeError: Expecting value: line 2 column 1 (char 1)

I saw somewhere online that they said perhaps because I'm passing an empty variable, I've got the api key token in my .env file. I tried with wrap it in single quotes, double quotes and no quotes, still nothing.

Google has not been much use. Anyone can help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions