Verify ERC20 token on Etherscan

Hey, I followed this solution (How to verify a contract deployed using Remix importing OpenZeppelin via GitHub?), but, did not work. I get the error, which I have attached here.

Can you please check and let me know what can be done?

Here is what I have done.

  1. Compiled the .sol file and deployed using remix.
  2. Flattened the .sol file using truffle-flattener.
  3. Tried to use that flattened code to verify at ropsten.

Thank you.

Regards,
Harish

1 Like

Hi @harishbp,

Welcome to the community :wave:

I recommend using https://buidler.dev/plugins/nomiclabs-buidler-etherscan.html to verify as multi-file.

Can you share your contract, address and whether optimization was enabled and I can verify?

A post was split to a new topic: 'Fail with error ‘SafeERC20: low-level call failed’