Is anyone experienceing this error when verifying contract on BscScan ?
Error! Unable to generate Contract ByteCode and ABI
Found the following ContractName(s) in source code : Address, Context, IERC20, IUniswapV2Factory, IUniswapV2Pair, IUniswapV2Router01, IUniswapV2Router02, Ownable, SafeMath, Unique
But we were unable to locate a matching bytecode (err_code_2)
Jun 30, 2021, 1:43 PM
optimization, compiler version
Jun 30, 2021, 1:44 PM
Means there is some error on your side (it could be minor like remix settings).
Jun 30, 2021, 1:44 PM
thanks too..
Jun 30, 2021, 1:59 PM
Hey, i am getting same error.
Will appreciate if anyone can help me with this
Will appreciate if anyone can help me with this
@iamabiolajacobs , bro, how did you solve your, what changes had to be made to compiler version settings ?
i am sure i have the correct compiler version
i am sure i have the correct compiler version
Jul 4, 2021, 9:28 AM
It was the compiler version for me.. I only needed to set the right compiler version.
Jul 4, 2021, 9:38 AM
even stranger is that, i can see in the error , that the bytecode bscscan is expecting is same as main contract
@freezyEXchange , i added the library succesfully , but now the error changed, π
Jul 4, 2021, 10:43 AM
where you added
Jul 4, 2021, 10:44 AM
the contract address that remix , gave me for iterable
Jul 4, 2021, 10:44 AM
ok
optimization ? is the same of remix?
version?
Jul 4, 2021, 10:45 AM
yes, optimization enabled in both
and 0.6.12 in both
Jul 4, 2021, 10:46 AM
then put that in
Jul 4, 2021, 10:47 AM
sorry mate, didn't get you ?
Jul 4, 2021, 10:48 AM
in etherscan
it should show optimisation = off as default
change that to on
then go to advanced setting and put in how much runs you used
Jul 4, 2021, 10:49 AM
its is on in both, with 200
Jul 4, 2021, 10:50 AM
you are missing something
Jul 4, 2021, 10:58 AM
yeah, no worries, i will figure it out βοΈπ
its probably something very minor ans stupid from my sideπ
btw, i am doing this on testnet, but i guess that shouldn't be a problem,
found the error, verification done ππ
Jul 4, 2021, 11:26 AM
wtf
Jul 4, 2021, 12:54 PM
lmao why
Jul 4, 2021, 12:58 PM
Message removed now
Jul 4, 2021, 1:05 PM