* Update contract pragmas to solidity 0.7 * Remove internal declaration on constructors * Reference SafeMath explicitely * Remove public constructor declaration from abstract contracts * Remove public constructor declaration from non-abstract contracts
30 lines
629 B
Solidity
30 lines
629 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.7.0;
|
|
|
|
import "../token/ERC20/ERC20Snapshot.sol";
|
|
|
|
|
|
contract ERC20SnapshotMock is ERC20Snapshot {
|
|
constructor(
|
|
string memory name,
|
|
string memory symbol,
|
|
address initialAccount,
|
|
uint256 initialBalance
|
|
) ERC20(name, symbol) {
|
|
_mint(initialAccount, initialBalance);
|
|
}
|
|
|
|
function snapshot() public {
|
|
_snapshot();
|
|
}
|
|
|
|
function mint(address account, uint256 amount) public {
|
|
_mint(account, amount);
|
|
}
|
|
|
|
function burn(address account, uint256 amount) public {
|
|
_burn(account, amount);
|
|
}
|
|
}
|