made acceptOwnership() throw when not newOwner

This commit is contained in:
Griff Green 2017-09-29 15:09:05 +02:00 committed by GitHub
parent 9cc092d2cd
commit a4793fb44d
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ contract Owned {
/// @notice `newOwner` can accept ownership over this contract
function acceptOwnership() {
if (msg.sender == newOwner) {
require(msg.sender == newOwner) {
owner = newOwner;
}
}