owner can't be set as heir

pull/680/head
zava 7 years ago committed by Alejandro Santander
parent 5716492ebd
commit e5960465a7
  1. 1
      contracts/ownership/Inheritable.sol

@ -45,6 +45,7 @@ contract Inheritable is Ownable {
}
function setHeir(address newHeir) public onlyOwner {
require(newHeir != owner);
heartbeat();
HeirChanged(owner, newHeir);
heir = newHeir;

Loading…
Cancel
Save