Isa Hassan ⚡ pfp
Isa Hassan ⚡
@totheapex
Contract Structure and Constructor Function pragma solidity ^0.8.0; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract Totheapex is ERC20 { constructor(string memory name, string memory symbol, uint initialSupply) ERC20(name, symbol) { _mint(msg.sender, initialSupply); } }
1 reply
1 recast
2 reactions

Isa Hassan ⚡ pfp
Isa Hassan ⚡
@totheapex
- The `ERC20` contract's constructor is called with the `name` and `symbol` parameters. - The `_mint` function is used to assign the initial supply of tokens to the contract deployer (`msg.sender`). Let me know if this looks good, and I'll help with the next step!
0 reply
0 recast
0 reaction