Cant verify my contract

hi there, i'm just used openzeppelin wizard and deploy ERC20 smart contract. But I cannot verify it...

1 Like

You have to flatten it. You can use remix plugin

1 Like

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.

1 Like

If you have the same code no issue.
What error do you get after you have flatten it?

1 Like

put back the code that you have on remix, then flatten it, then use for verification.

Error! Unable to generate Contract ByteCode and ABI