Explorer
contracts
MyToken.sol
NFT.sol
scripts
package.json
MyToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract MyToken is ERC20, Ownable {
constructor() ERC20("MyToken", "MTK") Ownable(msg.sender) {
_mint(msg.sender, 1000000 * 10 ** decimals());
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}TerminalOutputProblems
[System] PLUS Web3 IDE Initialized.
AI Copilot
Hello! I am your PLUS AI Copilot. Do you need help writing a smart contract?