We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18552a8 commit 79eb94dCopy full SHA for 79eb94d
contracts/token/ERC20/ERC20.sol
@@ -171,7 +171,7 @@ contract ERC20 is IERC20 {
171
* @param value The amount that will be created.
172
*/
173
function _mint(address account, uint256 value) internal {
174
- require(account != 0);
+ require(account != address(0));
175
_totalSupply = _totalSupply.add(value);
176
_balances[account] = _balances[account].add(value);
177
emit Transfer(address(0), account, value);
@@ -184,7 +184,7 @@ contract ERC20 is IERC20 {
184
* @param value The amount that will be burnt.
185
186
function _burn(address account, uint256 value) internal {
187
188
require(value <= _balances[account]);
189
190
_totalSupply = _totalSupply.sub(value);
0 commit comments