fix ERC20.sol#L174 and ERC20.sol#L187 should be casted to an address type. (#1470)
This commit is contained in:
committed by
Nicolás Venturo
parent
18552a8d5f
commit
79eb94d3cd
@ -171,7 +171,7 @@ contract ERC20 is IERC20 {
|
|||||||
* @param value The amount that will be created.
|
* @param value The amount that will be created.
|
||||||
*/
|
*/
|
||||||
function _mint(address account, uint256 value) internal {
|
function _mint(address account, uint256 value) internal {
|
||||||
require(account != 0);
|
require(account != address(0));
|
||||||
_totalSupply = _totalSupply.add(value);
|
_totalSupply = _totalSupply.add(value);
|
||||||
_balances[account] = _balances[account].add(value);
|
_balances[account] = _balances[account].add(value);
|
||||||
emit Transfer(address(0), account, value);
|
emit Transfer(address(0), account, value);
|
||||||
@ -184,7 +184,7 @@ contract ERC20 is IERC20 {
|
|||||||
* @param value The amount that will be burnt.
|
* @param value The amount that will be burnt.
|
||||||
*/
|
*/
|
||||||
function _burn(address account, uint256 value) internal {
|
function _burn(address account, uint256 value) internal {
|
||||||
require(account != 0);
|
require(account != address(0));
|
||||||
require(value <= _balances[account]);
|
require(value <= _balances[account]);
|
||||||
|
|
||||||
_totalSupply = _totalSupply.sub(value);
|
_totalSupply = _totalSupply.sub(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user