Closed maxsiz closed 3 years ago
I think the issue is present from 0.8.4 onward. Not sure what changed in that version, but something happened that broke everything.
There are a lot of changes but code compiling is OK. Only source collecting is broken https://docs.soliditylang.org/en/breaking/080-breaking-changes.html
I was able to use pragma solidity 0.8.3;
and get it to work - so it's something with 0.8.4+
It looks like it might have to do with get_verification_info
. If I run get_verification_info
on any contract with imports from OZ, it bugs out. Seems like it should be pretty straightforward for one of us to fix.
Yeah get_verification_info
seems to be ignoring imports
https://github.com/ethereum/solidity/issues/11643
I think this is the problem
@iamdefinitelyahuman I have update brownie up to 1.15.1 but still cant verify code sol version >= 0.8.0. Does work in progress? May be you need some help?
is this fixed in v1.15.2
?
Thank you!
After brownie compile --all
seems that output LockerByBlock.get_verification_info()
look well. I`ll check soon on etherscan
https://github.com/ethereum/solidity/issues/11643#issuecomment-891887826
Not sure if this conversation was addressed, haven't had a chance to jump into the brownie code yet.
Environment information
brownie
Version: 1.14.6ganache-cli
Version: 0.8.4solc
Version: 0.8.4What was wrong?
Every time when I try publish multifile source on Etherscan with sol version more then 0.8.0 error is occur.
But when i just change solidity version in pragma - all is ok.
I have check in console
First.get_verification_info()
- So in case sol >= 0.8.0 function return onlyfirst file in sources.
At the same time, the deployment goes well in both cases.
Example sources are below.
pragma solidity ^0.7.4;
File 1 (First.sol)
File 2 (Second.sol)
First.get_verification_info() output
pragma solidity ^0.8.4;
File 1 (First.sol)
File 2 (Second.sol)
First.get_verification_info() output