Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient

Hello there,

It's warning you because it doesn't need to be public

contract DaBabyCoin is ERC20 {
    constructor (uint256 initialSupply) ERC20 ("DaBaby Coin", "DaCoin"){
        _mint(msg.sender, initialSupply);
    }
}

You should also include a license identifier at the top

// SPDX-License-Identifier: Unlicensed

I recommend to get started you should follow the tutorial over at OpenZeppelin Upgrades: Step by Step Tutorial for Hardhat

You don't need to understand 100%, but doing it will get you up and running.

Afterwards follow

To learn more!

1 Like