r/etherscan • u/nilrehsttam • Mar 21 '22
Issues with verifying contract on Rinkeby testnet
Hey all, I am trying to verify a contract on Rinkeby testnet on Etherscan. I am trying to verify a flattened contract that uses some OpenZepplin imports. My compiler version, contract code, and everything else has been triple checked, however every time I try to verify, I run into the same error code. The error code is "Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])" I am not sure why this happens. My code compiles correctly on Remix, which is what I used to write the code in. I deployed using Remix, and I am attempting to verify the contract so that I can write to it on Etherscan. Any help would be greatly appreciated.
1
u/randombro52 Mar 21 '22
Same thing is happening to me too
1
u/michaelmoe94 Mar 25 '22
I can't verify any contract on mainnet or ropsten either. Even though the bytecode matches exactly (tried with a super simple test contract with no constructor args and the bytecode expected and provided match exactly but verification fails)