mirror of
https://github.com/logos-messaging/logos-messaging-rlnv2-contract.git
synced 2026-01-02 14:03:07 +00:00
21 lines
638 B
Solidity
21 lines
638 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity >=0.8.19 <0.9.0;
|
|
|
|
import { BaseScript } from "../script/Base.s.sol";
|
|
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
import { ERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
|
|
|
|
contract TestToken is ERC20, ERC20Permit {
|
|
constructor() ERC20("TestToken", "TTT") ERC20Permit("TestToken") { }
|
|
|
|
function mint(address to, uint256 amount) public {
|
|
_mint(to, amount);
|
|
}
|
|
}
|
|
|
|
contract TestTokenFactory is BaseScript {
|
|
function run() public broadcast returns (address) {
|
|
return address(new TestToken());
|
|
}
|
|
}
|