hi there, i'm just used openzeppelin wizard and deploy ERC20 smart contract. But I cannot verify it...
You have to flatten it. You can use remix plugin
activate flattener on Remix, flatten it, then submit the flattened copy during verification.
I tried that way before but I still get the error.
Maybe because I closed Remix after creating the token, and lost the code that was deployed, I can still verify it?
But I have exactly the same code but not in remix, it is exactly the same as the code that I deployed.
If you have the same code no issue.
What error do you get after you have flatten it?
put back the code that you have on remix, then flatten it, then use for verification.
Error! Unable to generate Contract ByteCode and ABI