ERC20PresetMinterPauser: how to verify on Etherscan and is it safe to use in a Crowdsale?

Hi @jeissoni,

Welcome to the community :wave:

I encourage you to go through: Points to consider when creating a fungible token (ERC20, ERC777)

Part of this is appropriately testing your solution, so you may want to use Truffle or Hardhat for this.

Please note, Crowdsales are in OpenZeppelin Contracts 2.x https://docs.openzeppelin.com/contracts/2.x/crowdsales whilst the Preset contract is in OpenZeppelin Contracts 3.x https://docs.openzeppelin.com/contracts/3.x/erc20#Presets
So you may want to deploy your token separately e.g. from a separate project.

Regards verifying, I recommend the following: How to verify with Hardhat or Truffle a smart contract using OpenZeppelin Contracts

If you have issues you can share your Solidity code, and the parameters passed to the constructor and whether optimization was enabled and I can try to help.

_From: https://docs.openzeppelin.com/contracts/3.x/erc20#Presets_
This contract is ready to deploy without having to write any Solidity code. It can be used as-is for quick prototyping and testing, but is also suitable for production environments.

1 Like