Skip to content

Commit 6a31838

Browse files
committed
add erc20 mock for testing
1 parent 17ed584 commit 6a31838

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

contract/mocks/MockERC20.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.26;
3+
4+
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
5+
6+
contract MockERC20 is ERC20 {
7+
constructor(string memory n, string memory s) ERC20(n, s) {}
8+
9+
function mint(address to, uint256 amount) external {
10+
_mint(to, amount);
11+
}
12+
}

0 commit comments

Comments
 (0)