work-sample/contracts/MagnaToken.sol

13 lines
307 B
Solidity
Raw Permalink Normal View History

2022-11-09 07:19:59 -08:00
// SPDX-License-Identifier: MIT
pragma solidity =0.8.17;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MagnaToken is ERC20 {
uint256 constant _initial_supply = (10**9) * (10**18);
constructor() ERC20("MagnaToken", "MAGNA") {
_mint(msg.sender, _initial_supply);
}
}