Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to verify contract. #3

Open
dark001111 opened this issue Jul 5, 2022 · 0 comments
Open

unable to verify contract. #3

dark001111 opened this issue Jul 5, 2022 · 0 comments

Comments

@dark001111
Copy link

My contract does not automatically verify like yours does. When I try the token = DamnValuableToken.deploy({"from": deployer},publish_source=True) method, the contract deploys but then throws this error and doesn't verify, not allowing me to go further;

File "", line 1, in
File "brownie/network/contract.py", line 549, in call
return tx["from"].deploy(
File "brownie/network/account.py", line 557, in deploy
contract.publish_source(deployed_contract, silent=silent)
File "brownie/network/contract.py", line 351, in publish_source
raise ValueError(
ValueError: An API token is required to verify contract source code. Visit https://etherscan.io/ to obtain a token, and then store it as the environment variable $ETHERSCAN_TOKEN

I added my etherscan api to the .env and I keep getting the same issues. I see you didn't have to add one, but my infura does not work to verify it for me. I recently switched to linux/ubuntu and it has been a huge pain in the ass so far. I've spent out 4 hours on this today, as I hate asking for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant