ERC20SnapshotMock.sol 603 B

123456789101112131415161718192021222324252627
  1. pragma solidity ^0.6.0;
  2. import "../token/ERC20/ERC20Snapshot.sol";
  3. contract ERC20SnapshotMock is ERC20Snapshot {
  4. constructor(
  5. string memory name,
  6. string memory symbol,
  7. address initialAccount,
  8. uint256 initialBalance
  9. ) public ERC20(name, symbol) {
  10. _mint(initialAccount, initialBalance);
  11. }
  12. function snapshot() public {
  13. _snapshot();
  14. }
  15. function mint(address account, uint256 amount) public {
  16. _mint(account, amount);
  17. }
  18. function burn(address account, uint256 amount) public {
  19. _burn(account, amount);
  20. }
  21. }