“openzeppelin-solidity” library doesn’t have ERC20Detailed.sol file but it is a dependancy for deploying smart contract on harmony blockchain. How do I install ERC20Detailed.sol and why is it not present in openzeppelin-solidity library ?
Thanks in advance
It might be due to the breaking change introduced in OpenZeppelin contracts v3.0.0 which removed ERC20Detailed:
If you’re using the
ERC721tokens however, you’ll have to remove all references to optional extensions (
ERC721Enumerable, etc.) - these have been included in the base contracts.
So if you really need ERC20Detailed due to a dependency, and can’t just use the base ERC20, you’ll have to use an earlier version of OpenZeppelin.
Welcome to the community
If the example is from the team at Harmony, I suggest asking them to update it to use OpenZeppelin Contracts 3.x and the npm package name
openzeppelin-solidity is the older name).
solve my question ns
You are right . That was it. Thank you and sorry for the late reply.