I apologize for opening another topic on this, but I simply cannot solve this issue. I’ve deployed and verified contracts before, yet not using OpenZeppelin. What I did in my contract is to import these files (please observe that I did not use the local import @ style):
Everything compiled well in Remix, I’ve deployed the contract and it works. Yet I cannot verify it, because import clauses are not allowed on etherscan. I’ve installed truffle to compile and flatten the file, yet I had to install OpenZeppelin contracts, and I had to change my contract to use the @import (no other changes).
Truffle compiles and I used truffle-flattener. I’ve set the same values in etherscan verify as in Remix, compiler 0.6.6+commit.6c089d02, no optimizations (I’ve tried with) and 200 Runs. I have no constructor in my contract, yet ERC20 does!!!
I have masked the name of my contract, not entirely sure why. If that would be important I can provide it.
The bytecode that “what we are looking for” is ~7000 bytes larger than “what we got”…