mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-20 18:56:17 +00:00
## Description Adds a CI workflow that builds a small Hardhat project with `hardhat-polkadot`, exercising the standard JSON interface between `resolc` and `hardhat-polkadot` end-to-end. ## Resolved Issues Closes #514
18 lines
496 B
Solidity
18 lines
496 B
Solidity
// SPDX-License-Identifier: MIT
|
|
// Compatible with OpenZeppelin Contracts ^5.0.0
|
|
pragma solidity ^0.8.22;
|
|
|
|
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
|
|
|
|
contract MyToken is ERC20, Ownable {
|
|
constructor(address initialOwner)
|
|
ERC20("MyToken", "MTK")
|
|
Ownable(initialOwner)
|
|
{}
|
|
|
|
function mint(address to, uint256 amount) public onlyOwner {
|
|
_mint(to, amount);
|
|
}
|
|
}
|