* Merge ERC20Detailed into ERC20, make derived contracts abstract * Fix Create2 tests * Fix failing test * Default decimals to 18 * Add tests for setupDecimals * Add changelog entry * Update CHANGELOG.md * Update CHANGELOG.md * Replace isConstructor for !isContract * Update CHANGELOG.md Co-Authored-By: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
24 lines
496 B
Solidity
24 lines
496 B
Solidity
pragma solidity ^0.6.0;
|
|
|
|
import "../token/ERC20/ERC20Pausable.sol";
|
|
|
|
// mock class using ERC20Pausable
|
|
contract ERC20PausableMock is ERC20Pausable {
|
|
constructor (
|
|
string memory name,
|
|
string memory symbol,
|
|
address initialAccount,
|
|
uint256 initialBalance
|
|
) public ERC20(name, symbol) {
|
|
_mint(initialAccount, initialBalance);
|
|
}
|
|
|
|
function pause() external {
|
|
_pause();
|
|
}
|
|
|
|
function unpause() external {
|
|
_unpause();
|
|
}
|
|
}
|