From f78d641e5f1a6eb1a9ffc81166ec095c27b4f37b Mon Sep 17 00:00:00 2001 From: sherlock-admin4 <162441180+sherlock-admin4@users.noreply.github.com> Date: Thu, 28 Nov 2024 09:26:23 +0100 Subject: [PATCH] message --- ERC20Fake.sol | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ERC20Fake.sol diff --git a/ERC20Fake.sol b/ERC20Fake.sol new file mode 100644 index 0000000..017cc15 --- /dev/null +++ b/ERC20Fake.sol @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: AGPL-3.0-only +pragma solidity ^0.8.23; + +import {ERC20} from "openzeppelin/token/ERC20/ERC20.sol"; + +/// @dev An ERC20 token that allows for public minting for use in tests. +contract ERC20Fake is ERC20 { + constructor() ERC20("Fake Token", "FAKE") {} + + /// @dev Public mint function useful for testing + function mint(address _account, uint256 _value) public { + _mint(_account, _value); + } +}