Skip to content

Instantly share code, notes, and snippets.

@nhancv
Last active March 2, 2022 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhancv/b3faf4a013a66dc9ab13c769549d216c to your computer and use it in GitHub Desktop.
Save nhancv/b3faf4a013a66dc9ab13c769549d216c to your computer and use it in GitHub Desktop.
MockERC20
// 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