emit transfer event in ERC20 template
This commit is contained in:
@@ -39,6 +39,7 @@ contract InitializableERC20 {
|
||||
name = _name;
|
||||
symbol = _symbol;
|
||||
decimals = _decimals;
|
||||
emit Transfer(address(0), _creator, _totalSupply);
|
||||
}
|
||||
|
||||
function transfer(address to, uint256 amount) public returns (bool) {
|
||||
|
||||
@@ -39,6 +39,7 @@ contract InitializableMintableERC20 is InitializableOwnable {
|
||||
decimals = _decimals;
|
||||
totalSupply = _initSupply;
|
||||
balances[_creator] = _initSupply;
|
||||
emit Transfer(address(0), _creator, _initSupply);
|
||||
}
|
||||
|
||||
function transfer(address to, uint256 amount) public returns (bool) {
|
||||
|
||||
Reference in New Issue
Block a user