Last active
March 2, 2022 13:25
-
-
Save nhancv/b3faf4a013a66dc9ab13c769549d216c to your computer and use it in GitHub Desktop.
MockERC20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.4; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract MockERC20 is ERC20 { | |
constructor( | |
string memory _name, | |
string memory _symbol, | |
uint256 _initialSupply | |
) ERC20(_name, _symbol) { | |
_mint(msg.sender, _initialSupply * 1e18); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment