ERC20SnapshotMock.sol 636 B

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