You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: