Skip to content

Commit 79eb94d

Browse files
alantnventuro
authored andcommitted
fix ERC20.sol#L174 and ERC20.sol#L187 should be casted to an address type. (#1470)
1 parent 18552a8 commit 79eb94d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/token/ERC20/ERC20.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ contract ERC20 is IERC20 {
171171
* @param value The amount that will be created.
172172
*/
173173
function _mint(address account, uint256 value) internal {
174-
require(account != 0);
174+
require(account != address(0));
175175
_totalSupply = _totalSupply.add(value);
176176
_balances[account] = _balances[account].add(value);
177177
emit Transfer(address(0), account, value);
@@ -184,7 +184,7 @@ contract ERC20 is IERC20 {
184184
* @param value The amount that will be burnt.
185185
*/
186186
function _burn(address account, uint256 value) internal {
187-
require(account != 0);
187+
require(account != address(0));
188188
require(value <= _balances[account]);
189189

190190
_totalSupply = _totalSupply.sub(value);

0 commit comments

Comments
 (0)