Do not use implicit type conversion for address literals (#1002)

Uses the explicit address(0) for the zero address
This commit is contained in:
Alex Beregszaszi
2018-06-14 00:21:24 +01:00
committed by Matt Condon
parent e4ed8f0705
commit 78e39aa2ad
5 changed files with 10 additions and 10 deletions

View File

@ -32,7 +32,7 @@ contract SimpleSavingsWallet is Heritable {
* @dev wallet can send funds
*/
function sendTo(address payee, uint256 amount) public onlyOwner {
require(payee != 0 && payee != address(this));
require(payee != address(0) && payee != address(this));
require(amount > 0);
payee.transfer(amount);
emit Sent(payee, amount, address(this).balance);