ERC20Mock.sol 700 B

1234567891011121314151617181920212223242526
  1. pragma solidity ^0.6.0;
  2. import "../token/ERC20/ERC20.sol";
  3. // mock class using ERC20
  4. contract ERC20Mock is ERC20 {
  5. constructor (address initialAccount, uint256 initialBalance) public {
  6. _mint(initialAccount, initialBalance);
  7. }
  8. function mint(address account, uint256 amount) public {
  9. _mint(account, amount);
  10. }
  11. function burn(address account, uint256 amount) public {
  12. _burn(account, amount);
  13. }
  14. function transferInternal(address from, address to, uint256 value) public {
  15. _transfer(from, to, value);
  16. }
  17. function approveInternal(address owner, address spender, uint256 value) public {
  18. _approve(owner, spender, value);
  19. }
  20. }