ERC20Capped: Immutable Variables cannot be read during contract creation time

Hi @grimmdev,

Minting outside the constructor should be fine. You should create appropriate unit tests.

OpenZeppelin Contracts 4 is still a release candidate, so I want to check if it is possible to enable capped minting in the constructor.

2 Likes