* 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>
14 lines
338 B
Solidity
14 lines
338 B
Solidity
pragma solidity ^0.6.0;
|
|
|
|
import "../token/ERC20/ERC20.sol";
|
|
|
|
contract ERC20DecimalsMock is ERC20 {
|
|
constructor (string memory name, string memory symbol, uint8 decimals) public ERC20(name, symbol) {
|
|
_setupDecimals(decimals);
|
|
}
|
|
|
|
function setupDecimals(uint8 decimals) public {
|
|
_setupDecimals(decimals);
|
|
}
|
|
}
|