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

@ -24,7 +24,7 @@ contract SimpleToken is StandardToken {
constructor() public {
totalSupply_ = INITIAL_SUPPLY;
balances[msg.sender] = INITIAL_SUPPLY;
emit Transfer(0x0, msg.sender, INITIAL_SUPPLY);
emit Transfer(address(0), msg.sender, INITIAL_SUPPLY);
}
}