Open ghost opened 3 years ago
I have the same issue. Using solc 0.8.3 instead of 0.8.4 seems to have fixed. Guessing this is related to the issue that makes coverage reports fail on 0.8.4
in my case, it fail because the output of flattened_source
is invalid, there is a character removed:
// Part: ReentrancyGuard
ontract ReentrancyGuard {
when I add the c
and verify on the web ui it works
I have the same issue. Using solc 0.8.3 instead of 0.8.4 seems to have fixed.
I have the same issue. Using solc 0.8.3 instead of 0.8.4 seems to have fixed.
Me too
This issue maybe cause by flatten wrong. I also got the same problem in Solc 0.6.12.
I fix by these steps:
MyContract.get_verification_info()
, then I can get the flattened source codeThis method can solve verify error temp, hope new version come up early.
Having similar issues in mine, solc 0.8.0
Having similar issue (Brownie 1.16.3, solc 0.8.0) My py-solc-ast version: 1.2.9 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from eth-brownie) (1.2.9) Hence the fix described by @skellet0r does not fix the problem with the verification
Odd, so you're using flattened source to verify ? Does the standard json input verification fail as well ? Brownie by default uses standard json input on etherscan
Odd, so you're using flattened source to verify ? Does the standard json input verification fail as well ? Brownie by default uses standard json input on etherscan
how can i choose the method of verification?
I am using ContractContainer.publish_source(ContractContainer[-1]) I have 4 contracts, only one fails verification
Possible related issue #1604
Environment information
brownie
Version: 1.14.6solc
Version: 0.8.4What was wrong?
Given a contract
brownie compile
runs perfect. But inbrownie console
, verification always fails using eitherdeploy()
orpublish_source()
.How can it be fixed?
I don't know how to fix this.