Closed DieKant closed 2 years ago
Hello @DieKant the code is complaining about the API key, if you have configured the parameter "verify=true" for kovan on your brownie-config.yaml
you will also have to add the EtherScan API key to you .env
otherwise it won't work.
Hi @cromewar
I do have both an etherscan API key in my .env file as ETHERSCAN_TOKEN and the "verify=true" in my brownie-config.yaml under the kovan network
I've tried to solve this multiple times but I didn't find a solution yet
EDIT: closed issue by error, reopening it
Hum strange as the error is complaining bout that verification, could you change the verify to false, and see if it pass through? just to confirm is a problem with the API key.
Hi @cromewar
I solved the issue by putting True
instead of config["networks"][network.show_active()]["verify"]
in the publish_source option
This doesn't make any sense whatsoever, I made this custom test (it's right below this text) and it passes the assertion phase, I don't understand why if it's the same exact thing it gives an error when I use it one way instead of another
` used this command-> brownie test -k test_is_it_true --network kovan
def test_is_it_true():
verify = config["networks"][network.show_active()]["verify"]
assert verify == True
gives this output->
INFORMAZIONI: impossibile trovare file corrispondenti ai
criteri di ricerca indicati.
Brownie v1.17.1 - Python development framework for Ethereum
================================================================================================== test session starts ==================================================================================================
platform win32 -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: D:\SolidityProjects\full-stack-defi
plugins: eth-brownie-1.17.1, hypothesis-6.24.0, forked-1.3.0, xdist-1.34.0, web3-5.24.0
collected 9 items / 8 deselected / 1 selected
tests\unit\test_token_farm_unit.py . [100%]
============================================================================================ 1 passed, 8 deselected in 6.19s ============================================================================================
`
You are awesome @DieKant I think this should be because the contract must be verified in order to be executed (don't know why tough).
Hi
I tried to upload TokenFarm and DappToken on kovan but I'm getting this error on the terminal
this is what my deploy.py looks like
I don't really understand what's going on here, also I've tried to find solutions online but none were useful
Could someone help me on this please?