How to verify a contract deployed using Remix importing OpenZeppelin via GitHub?

I have compiled and deployed the contract on remix with the flattener plug-in enabled,

Then I have flattened the code for verification on etherscan which gives us these errors

As suggested by you to flatten the contract when you have imports (even importa from GitHub of zeplin). Then we did that but seems etherscan doesn’t know which contract bytes to compare to when you have a single file and many contracts defined in it…

So you can reproduce this if you make a simple token erc721 or erc20 and import all it’s dependencies from GitHub deploy on remix then flatten it and try to verify it…

Thanks

2 Likes