From 79eb94d3cd96e0d65a4fec020fc1218dd3320b76 Mon Sep 17 00:00:00 2001 From: "Hao (Alan) Tang" <7888785@qq.com> Date: Thu, 1 Nov 2018 11:27:51 -0700 Subject: [PATCH] fix ERC20.sol#L174 and ERC20.sol#L187 should be casted to an address type. (#1470) --- contracts/token/ERC20/ERC20.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/token/ERC20/ERC20.sol b/contracts/token/ERC20/ERC20.sol index 25b2694a2..77a88be62 100644 --- a/contracts/token/ERC20/ERC20.sol +++ b/contracts/token/ERC20/ERC20.sol @@ -171,7 +171,7 @@ contract ERC20 is IERC20 { * @param value The amount that will be created. */ function _mint(address account, uint256 value) internal { - require(account != 0); + require(account != address(0)); _totalSupply = _totalSupply.add(value); _balances[account] = _balances[account].add(value); emit Transfer(address(0), account, value); @@ -184,7 +184,7 @@ contract ERC20 is IERC20 { * @param value The amount that will be burnt. */ function _burn(address account, uint256 value) internal { - require(account != 0); + require(account != address(0)); require(value <= _balances[account]); _totalSupply = _totalSupply.sub(value);