Skip to content

Instantly share code, notes, and snippets.

@reuniware
Created April 20, 2021 14:37
Show Gist options
  • Save reuniware/c3b33b5a953025a82d6d38548f817df1 to your computer and use it in GitHub Desktop.
Save reuniware/c3b33b5a953025a82d6d38548f817df1 to your computer and use it in GitHub Desktop.
test token erc20
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MintableToken is Ownable, ERC20 {
constructor() ERC20("MJNA Token", "MJNA") { }
function mint(address account, uint256 amount) public onlyOwner {
_mint(account, amount);
}
function burn(address account, uint256 amount) public onlyOwner {
_burn(account, amount);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment