Contracts Wizard ERC20 Minting

Thanks in advance!

Launching an ERC20 via Contract Wizard

:computer: Environment
using https://docs.openzeppelin.com/contracts/4.x/wizard just minting an initial supply of 10,000,000 to test

:memo:Details
contract compiles and launches, but no tokens… not sure why, tested multiple times:

:1234: Code to reproduce

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract MyToken is ERC20 {
    constructor() ERC20("MyToken", "MTK") {
        _mint(msg.sender, 10000000 * 10 ** decimals());
    }
}
1 Like

Hey, welcome!
Hope you enjoy Wizard!
So when you deploy the contract, have you selected the MyToken.sol to deploy?

1 Like

Ahh! No, I used the ERC20 — ty will try that.

  • yes, wizard is great!
1 Like

Easy, executed properly, thanks for your help!

1 Like